Skip to content

Toggle Group

Single/multiple toggle group.

Terminal window
npx github:truongnat/rnui#cli add toggle-group

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/toggle-group.json # or /uniwind/
<ToggleGroup type="single" value={v} onValueChange={setV}>
<ToggleGroupItem value="left"><Text>L</Text></ToggleGroupItem>
<ToggleGroupItem value="right"><Text>R</Text></ToggleGroupItem>
</ToggleGroup>
  • components/ui/toggle-group.tsx

Installs together with: utils, toggle, theme