v0.1 public beta early access on GitHub
Home / Components / toggle-group

Toggle GroupAndroid

Single or multi-select group over toggle buttons.

$ npx lumioui add toggle-group
import { ToggleGroupItem, ToggleGroup } from "@/components/ui/toggle-group/toggle-group";
Parts: ToggleGroupItem
Props11
ToggleGroup
type "single" | "multiple" Single select or multiple select.
value? string | string[] Controlled selected value(s). Omit with defaultValue for uncontrolled use.
defaultValue? string | string[] Initial value(s) for uncontrolled use.
onValueChange? (value: string | string[]) => void Called when the selection changes.
disabled? boolean
className? string
children? React.ReactNode
ToggleGroupItem
value string
disabled? boolean
className? string
children? React.ReactNode
Toggle Group — Multiplemultiple.tsx
toggle-group/variants/multiple.tsx open

Single or multi-select group over toggle buttons.

Toggle Group — Singlesingle.tsx
toggle-group/variants/single.tsx open

Single or multi-select group over toggle buttons.