Forms and controls
Switch
No summary has been written for Switch. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.Public export
typescript
import { Switch } from '@happyvertical/smrt-ui/forms';- Import path
@happyvertical/smrt-ui/forms- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.44.0
Props
Also accepts Omit<HTMLInputAttributes, 'type' | 'class' | 'checked' | 'role' | 'size'>. The table lists the
component-specific contract.
NameTypeRequiredDescription
checkedbooleanNoWhether the switch is checked.labelstringNoText displayed next to the switch.labelPosition'left' | 'right'NoPosition of the label relative to the switch.size'sm' | 'md' | 'lg'NoVisual size of the switch control.classstringNoAdditional CSS class names.interactionControlInteractionOptions | falseNoRegisters this control for agent interaction; omit or pass false to exclude.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.