Switch | CombricSkip to content

Switch

Combric

Form-associated native checkbox presented as an on/off switch.

@combric/react · v1.1.1 · Current

Import and usage

import { Switch } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Enabled switch

Off state

Disabled state

Public API

Public exports
Name
Switch
Documented contracts
Property / capabilityPublished contract
ContractNative checkbox props
Contractchecked/defaultChecked
Contractrole is switch

Accessibility

Requires a label and retains native form participation; use Checkbox for ordinary form choices.

Keyboard

Native Space toggling.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Source

View source on GitHub