A11y: A label that describes the button
Icon Button
Icon button renders an icon within in a button.
Props#
aria-label
required
aria-label
required
Description
Type
string
colorScheme
colorScheme
Type
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
Default
"gray"
icon
icon
Description
The icon to be used in the button.
Type
React.ReactElement
isActive
isActive
Description
If true
, the button will be styled in its active state.
Type
boolean
isDisabled
isDisabled
Description
If true
, the button will be disabled.
Type
boolean
isLoading
isLoading
Description
If true
, the button will show a spinner.
Type
boolean
isRound
isRound
Description
If true
, the button will be perfectly round. Else, it'll be slightly round
Type
boolean
size
size
Type
"lg" | "md" | "sm" | "xs"
Default
"md"
spinner
spinner
Description
Replace the spinner component when isLoading
is set to true
Type
React.ReactElement
variant
variant
Type
"ghost" | "outline" | "solid" | "link" | "unstyled"
Default
"solid"
Props#
aria-label
required
aria-label
required
Description
A11y: A label that describes the button
Type
string
colorScheme
colorScheme
Type
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
Default
"gray"
icon
icon
Description
The icon to be used in the button.
Type
React.ReactElement
isActive
isActive
Description
If true
, the button will be styled in its active state.
Type
boolean
isDisabled
isDisabled
Description
If true
, the button will be disabled.
Type
boolean
isLoading
isLoading
Description
If true
, the button will show a spinner.
Type
boolean
isRound
isRound
Description
If true
, the button will be perfectly round. Else, it'll be slightly round
Type
boolean
size
size
Type
"lg" | "md" | "sm" | "xs"
Default
"md"
spinner
spinner
Description
Replace the spinner component when isLoading
is set to true
Type
React.ReactElement
variant
variant
Type
"ghost" | "outline" | "solid" | "link" | "unstyled"
Default
"solid"