NOCTA UI

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-group

Import the components:

import {
  ToggleGroup,
  ToggleGroupItem
} from '@/components/ui/toggle-group';

Examples

Default Toggle Group

Selected: Daily

Multiple Selection

Active channels: email

Sizes

Small

Medium

Large

Icon Toolbar

API Reference

ToggleGroup

Prop

Type

ToggleGroupItem

Prop

Type