Documentation
Buttons
Button Group

Button Group

1 2 3 4 import React from "react" import { ButtonGroup } from "@creation-ui/react" export const Example = () => <ButtonGroup size={"md"} />

Component API

ButtonGroup component props

PropDefaultDescription
options
ButtonGroupOption[]

Options of the button group.

className
string | string[]

Class names to add to wrapper component

sizemd
sm | md | lg

Size of the element

ButtonGroupOption props

PropDefaultDescription
className
string | string[]

Class names to add to wrapper component

label
React.ReactNode

Label

onClick
() => void

Callback function called on element click

disabled
boolean

Is component disabled? This will disable all interactions with component and styling.