4.2.0
CoreSwitch

Switch API

Every prop of Switch, generated from the package manifest.

import { Switch } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Switch
Contract
packages/brand-system/src/components/switch.contract.test-d.ts
Demos
2 on the Switch page — rendered live, hydrated
Source
packages/brand-system/src/components/switch.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Switch is for, how it composes and what it looks like, see Switch.

Switch

Inherited from @radix-ui/react-switch — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

On this page