Button Set

Provides single user input from a selection of options.

Usage

Size

Square

For icon-only items, use the square prop to give each option equal width and height.

Disabled

Props

PropTypeDefaultDescription
items*ButtonSetItem[]-Array of button items to display
size'sm' | 'md' | 'lg''md'Size of the button set
squarebooleanfalseMakes each item square (equal width/height)

ButtonSetItem

PropTypeDefaultDescription
children*ReactNode-Content of the button
isSelectedbooleanfalseWhether the button is selected
onClick() => void-Click handler for the button
disabledbooleanfalseWhether the button is disabled