Switch
constSource L9Open-code aq-ui accessible component family for Switch.
const Switch = React.forwardRef<React.ComponentRef<typeof SwitchPrimitive.Root>, SwitchPrimitive.Root.Props & { size?: "sm" | "default" }>(…)- Props type
SwitchPrimitive.Root.Props & { size?: "sm" | "default" }
Props
| Name | Type | Default |
|---|---|---|
size? | "sm" | "default" | "default" |
<Switch />