ButtonProps
Hierarchy
-
ComponentPropsWithoutRef
<"button"
>↳
ButtonProps
Properties
asChild
• Optional
asChild: boolean
Merge button props with immediate child.
Default
false;
children
• children: ReactNode
Overrides
ComponentPropsWithoutRef.children
loading
• Optional
loading: boolean
Disable the button and show a spinner.
Default
false;
size
• Optional
size: "normal"
| "large"
Increase or decrease padding.
Default
"normal";
variant
• Optional
variant: "primary"
| "secondary"
| "tertiary"
| "critical"
| "criticalTertiary"
Change between color combinations.
Default
"secondary";