Switch
import { Switch } from '@app/components/Switch'
Name
Description
Preview
checked
boolean
label
string
disabled
boolean
hasError
boolean
className
string
switchClassName
string
switchThumbClassName
string
labelClassName
string
hitSlop
number
Location
You can find the source of the Switch
component in the following location:
- Switch.styled.tsx
Disclaimer - Automatic Docgen
🤖
These dynamic component docs were auto-generated with npm run regenerate-docs
. You can hook into automatic docgen by exporting getDocumentationProps
from a component file. You’ll want to provide example props from the ComponentProps zod schema, e.g:
Switch.styled.tsx
/* --- Docs ---------------------- */
export const getDocumentationProps = SwitchProps.documentationProps('Switch')