IconButtonProps
Hierarchy
-
↳
IconButtonProps
Table of contents
Properties
Properties
asChild
• Optional asChild: boolean
Merge button props with immediate child.
Default
false;Inherited from
Defined in
packages/components/src/button/button.tsx:95 (opens in a new tab)
children
• children: ReactNode
Inherited from
Defined in
packages/components/src/button/button.tsx:70 (opens in a new tab)
label
• label: ReactNode
Defined in
packages/components/src/icon-button/icon-button.tsx:33 (opens in a new tab)
loading
• Optional loading: boolean
Disable the button and show a spinner.
Default
false;Inherited from
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;Inherited from
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";Inherited from
Defined in
packages/components/src/button/button.tsx:80 (opens in a new tab)