Toggle Group
Grouped toggle buttons for single or multiple selection states with shared styling and keyboard support.
Installation
Install the Toggle Group component using the nocta-ui CLI:
npx @nocta-ui/cli add toggle-groupImport the components:
import {
ToggleGroup,
ToggleGroupItem
} from '@/components/ui/toggle-group';Examples
Default Toggle Group
Multiple Selection
Sizes
Icon Toolbar
API Reference
ToggleGroup
Prop
Type
ToggleGroupItem
Prop
Type