Switch Reference
Consulte esta subpágina para ver import, available props, exemplo de uso e controles vivos do component.
Switch
Compact on/off control for enabling a feature or mode.
Use when: Use when the user is toggling a persistent setting or feature state.
Import
import { Switch } from "@components/index";Example
<Switch id="notifications" label="Notifications enabled" checked={false} onChange={setValue} />Available Props
checkedboolean
Current controlled state.
disabledboolean
Disables interaction.
labelstring
Visible switch label.
Live Preview
Controls
checked: false