Skip to content

CheckboxButtonGroup

Open .md
Live preview

Loading example…

Multi-select where each option is a button-like card; native checkboxes underneath.

import { CheckboxButtonGroup } from "@jcsoftdev/ui/forms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/forms/checkbox-button-group.

<CheckboxButtonGroup
options={options}
defaultValue={["corte"]}
aria-label="Servicios"
/>
Prop Type Default Description
options * ButtonOption[]
value string[]
defaultValue string[] []
onValueChange ((value: string[]) => void)
name string Form field name shared by the checkboxes.
disabled boolean
aria-label string
aria-labelledby string
className string

* marks a required prop.

packages/ui/src/forms/checkbox-button-group/checkbox-button-group.tsx