Skip to main content

Module button

Module button 

Source
Expand description

Button — port of @heroui/button (v3).

v3 replaced v2’s variant x color matrix with a single emphasis scale: primary | secondary | tertiary | outline | ghost | danger | danger-soft. There is no color or radius prop, isLoading became isPending, and v2’s startContent/endContent slots are gone: icons are ordered ParentElement children around the label.

Structs§

Button
HeroUI Button.

Enums§

GroupEdge
Which edge of a crate::button_group::ButtonGroup a button sits on.

Functions§

apply_button_variant
Paints a button’s fill, border, text and interaction states for variant.
button_foreground
The text colour variant paints, for child svgs that cannot inherit text_color from their parent.
button_hover_colors
The background pair variant eases between on hover, or None when the variant has no background to ease.