Two-state toggle button on Base UI with sm, default and lg sizes and a pressed style. A shadcn-compatible Toggle for toolbar actions like bold or mute in React.
npx shadcn@latest add @minidev/toggle
Loading the source for toggle…
Registry Items
toggle
Configuration
Name
toggle
Type
UI
Description
Two-state toggle button on Base UI with sm, default and lg sizes and a pressed style. A shadcn-compatible Toggle for toolbar actions like bold or mute in React.
Files · 1
Dependencies
npm packages
@base-ui/react
class-variance-authority
Registry Items
toggle
Configuration
Name
toggle
Type
UI
Description
Two-state toggle button on Base UI with sm, default and lg sizes and a pressed style. A shadcn-compatible Toggle for toolbar actions like bold or mute in React.