Icon Button

Icon button renders an icon within in a button.

    View SourceView Theme Source@chakra-ui/button

Props#

aria-labelRequired

Description

A11y: A label that describes the button

Type
string

icon

Description

The icon to be used in the button.

Type
ReactElement<any, string | JSXElementConstructor<any>>

isActive

Description

If true, the button will be styled in its active state.

Type
boolean
Default
false

isDisabled

Description

If true, the button will be disabled.

Type
boolean
Default
false

isLoading

Description

If true, the button will show a spinner.

Type
boolean
Default
false

isRound

Description

If true, the button will be perfectly round. Else, it'll be slightly round

Type
boolean
Default
false

spinner

Description

Replace the spinner component when isLoading is set to true

Type
ReactElement<any, string | JSXElementConstructor<any>>