Toggle Group
A set of toggles, single or multiple.
Vinyl styling: Shares Toggle styling.
Installation
npx shadcn@latest add @vinyl/toggle-groupThe @vinyl registry URL in components.json decides whether you get the web or the native version (see installation for web / native).
Usage
<ToggleGroup type="single" defaultValue="b" variant="outline">
<ToggleGroupItem value="a">A</ToggleGroupItem>
<ToggleGroupItem value="b">B</ToggleGroupItem>
</ToggleGroup>API
Same API as shadcn/ui's Toggle Group on the web, and React Native Reusables' Toggle Group on native. Vinyl only changes styling and motion.