NeoTerm UI

Switch

Toggle switch with neon active state.

Import

import { Switch } from "neoterm-ui";

Usage

<Switch checked={enabled} onCheckedChange={setEnabled} label="Dark mode" />
<Switch checked={true} size="sm" disabled />

Props

PropTypeDefaultDescription
checkedbooleanOn/off state.
onCheckedChange(checked: boolean) => voidToggle callback.
size"sm" | "md""md"Switch size.
labelstringLabel text.
disabledbooleanDisable the switch.