- Android
- iOS
- Web
Toggle Button
Show a button with an on or off state.
Engine API NToggleButtonnayan-ui/components
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| isSelected | boolean | Optional | |
| defaultSelected | boolean | Optional | |
| disabled | boolean | Optional | |
| variant | string | Optional | |
| size | string | number | Optional | |
| onChange | ((value: boolean) => void) | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| accessibilityLabel | string | Optional |