Switch example
Displays a switch that can be clicked.
How to use this accordion
Props :
| Name | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | false | Change the default rendered element for the one passed as a child, merging their props and behavior. |
| checked | boolean | false | When when checked is true, displays with the primary color and translate the thumb to the right. |
| onCheckedChange | () => void | _ | Function called on click. |
| disabled | boolean | false | When true, prevents the user from interacting with the accordion and all its items. |
Playground
Import from @filigran/ui :
Import {Switch} from '@filigran/ui'