Button

Button component is used to trigger an action or event, such as submitting a form, opening a Dialog, canceling an action, or performing a delete operation.

    SourceTheme Source@chakra-ui/button

Props#

Button Props#

Button composes the Box component, so you can pass all its props. These are props specific to the Button component:

colorScheme

Description

The visual color appearance of the component

Type
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
Default
gray

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

size

Description

The size of the Button

Type
"lg" | "md" | "sm" | "xs"
Default
md

variant

Description

The variant of the Button

Type
"ghost" | "outline" | "solid" | "link" | "unstyled"
Default
solid

Button Group Props#

ButtonGroup composes the Box component, so you can pass all its props. These are props specific to the ButtonGroup component:

isAttached

Description

If true, the borderRadius of button that are direct children will be altered to look flushed together

Type
boolean
Default
false

isDisabled

Description

If true, all wrapped button will be disabled

Type
boolean
Default
false

spacing

Description

The spacing between the buttons

Type
ResponsiveValue<string | number | (string & {})>
Default
'0.5rem'
Edit this page on GitHub

Proudly made inNigeria by Segun Adebayo

Deployed by â–² Vercel