Vinyl UI

Toggle

Two-state button.

Vinyl styling: Pressed state uses the cyan secondary colour.

Installation

npx shadcn@latest add @vinyl/toggle

The @vinyl registry URL in components.json decides whether you get the web or the native version (see installation for web / native).

Usage

<Toggle variant="outline" aria-label="Loop">Loop</Toggle>

API

Same API as shadcn/ui's Toggle on the web, and React Native Reusables' Toggle on native. Vinyl only changes styling and motion.

On this page