# rn-switch URL: /docs/native/components/switch Toggle switch component with optional label and size variants. ## Installation ```bash pnpm dlx @docyrus/cli add @docyrus/rn-switch ``` ## Usage ```tsx import { Switch } from '@/components/docyrus-native/switch'; ``` ## API Reference | Prop | Type | Default | Description | |------|------|---------|-------------| | `checked` | `boolean` | `false` | Switch state | | `onCheckedChange` | `(value: boolean) => void` | — | State change handler | | `disabled` | `boolean` | `false` | Disable interaction | | `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Switch size | | `label` | `string` | — | Optional label text | | `className` | `string` | — | Additional CSS classes | | `labelClassName` | `string` | — | Label CSS classes | | `accessibilityLabel` | `string` | — | Accessibility label | ## Type Exports | Type | Description | |------|-------------| | `SwitchProps` | Props for Switch component | | `SwitchSize` | `'sm' \| 'md' \| 'lg'` |