Forms
Switch
An on/off setting that applies at once: a checkbox with role="switch".
Switch
<label class="og-check"><input type="checkbox" role="switch" class="og-switch" checked /> Notifications</label>
<label class="og-check"><input type="checkbox" role="switch" class="og-switch" /> Dark sidebar</label>React
import { Switch } from '@og-ui/react';
<Switch label="Notifications" defaultChecked />In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Space toggles. Screen readers announce “switch, on/off”.
Install
npx @og-ui/cli add switch
npx @og-ui/cli add switch --react # with the React component