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§
- Group
Edge - Which edge of a
crate::button_group::ButtonGroupa button sits on.
Functions§
- apply_
button_ variant - Paints a button’s fill, border, text and interaction states for
variant. - button_
foreground - The text colour
variantpaints, for child svgs that cannot inherittext_colorfrom their parent. - button_
hover_ colors - The background pair
varianteases between on hover, orNonewhen the variant has no background to ease.