Getting Started
Foundations
Components
Search for a command to run...
import { Toggle } from "@strongtie/design-system/toggle"<Toggle>This component accepts the following custom props. For additional props inherited from Radix UI primitives see the Radix UI documentation.
| Prop | Type | Default | Description |
|---|---|---|---|
size | "default" | "sm" | "lg" | null | 'default' | The size of the toggle button. |
variant | "default" | "outline" | null | 'default' | The visual style variant of the toggle. |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
toggle
variant (default: default)
| Value | Classes |
|---|---|
default | -ghost |
outline | -outlined |
size (default: default)
| Value | Classes |
|---|---|
default | -md |
sm | -sm |
lg | -lg |
This component inherits accessibility features from Radix UI, including: