Skip to content
nexubDesign System
v12.7.0

Components · Interactive

Toggle Group

StableAdded v0.0.1

Group of toggle buttons where one or many can be active.

import { ToggleGroup } from '@nexub/react';
View as Markdown

Playground

Props

type
TSX
<ToggleGroup.Root defaultValue="left" type="single">…</ToggleGroup.Root>

Examples

Single

Multiple

States

  • default
  • variant="default"
  • variant="outline"

Props

Props
PropTypeDefaultDescription
typerequired'single' | 'multiple'—Controls whether one or multiple items can be active at a time.
valuestring | string[]—The controlled active value(s).
variant'default' | 'outline'—Visual style applied to all toggle items in the group.

On iOS & Android