Skip to content

Actions

shadcn primitive

Toggle

A pressed or unpressed option.

When to use it
A single pressed or unpressed option in a toolbar. Use Switch for settings.

Pressed state

The filter resets when you leave.

Usage

Use the Code tab to copy a complete example. MSM pages import shared components from @msm/ui; changes to those components appear here and in the application.

View registry item