Skip to content

Switch

A Switch component.

A component used for binary input (checked/unchecked). Can also be disabled and comes in two sizes.

Switch is based on Chakra UI Switch. See API-reference for Chakra UI Switch.

import { Switch } from "@caspeco/casper-ui-library";
export default function Demo() {
return <Switch onCheckedChange={console.log} />;
}