l2logic2b/ui

Toggle Group

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

Installation

npx logic2b@latest add toggle-group

Usage

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

<ToggleGroup type="multiple">
  <ToggleGroupItem value="bold" aria-label="Toggle bold">
    <BoldIcon />
  </ToggleGroupItem>
</ToggleGroup>