Skip to content

Switch

Open .md
Live preview

Loading example…

Switch is part of the Atoms set, imported from @jcsoftdev/ui/atoms.

import { Switch } from "@jcsoftdev/ui/atoms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/atoms/switch.

<Switch aria-label="Recordatorios por WhatsApp" />

This component declares no props of its own.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/atoms/switch/switch.tsx