ButtonProps
Hierarchy
-
ComponentPropsWithoutRef<"button">↳
ButtonProps
Properties
asChild
• Optional asChild: boolean
Merge button props with immediate child.
Default
false;Defined in
packages/components/src/button/button.tsx:95 (opens in a new tab)
children
• children: ReactNode
Overrides
ComponentPropsWithoutRef.children
Defined in
packages/components/src/button/button.tsx:70 (opens in a new tab)
loading
• Optional loading: boolean
Disable the button and show a spinner.
Default
false;Defined in
packages/components/src/button/button.tsx:90 (opens in a new tab)
size
• Optional size: "normal" | "large"
Increase or decrease padding.
Default
"normal";Defined in
packages/components/src/button/button.tsx:75 (opens in a new tab)
variant
• Optional variant: "primary" | "secondary" | "tertiary" | "critical" | "criticalTertiary"
Change between color combinations.
Default
"secondary";Defined in
packages/components/src/button/button.tsx:80 (opens in a new tab)