Components · Interactive
Pressable toggle button built on Radix UI Toggle.
import { Toggle } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| pressed | boolean | — | — | The controlled pressed state. |
| defaultPressed | boolean | — | — | The initial pressed state when uncontrolled. |
| variant | 'default' | 'outline' | — | — | Visual style of the toggle button. |
| size | 'sm' | 'md' | 'lg' | — | — | Size of the toggle button. |
| disabled | boolean | — | — | Disables the toggle when true. |