VitNode
Forms

Toggle Group

A set of two-state buttons that can be toggled on or off.

Shadcn UI

This component is part of Shadcn UI.

Preview

Usage

import {
  ToggleGroup,
  ToggleGroupItem,
} from 'vitnode-frontend/components/ui/toggle-group';
<ToggleGroup type="single">
  <ToggleGroupItem value="a">A</ToggleGroupItem>
  <ToggleGroupItem value="b">B</ToggleGroupItem>
  <ToggleGroupItem value="c">C</ToggleGroupItem>
</ToggleGroup>

Examples

Shadcn UI Toggle Group - Examples.

API Reference

Radix UI Toggle Group.

On this page