Forms
Checkbox and radio
Native checkboxes and radios, restyled, including the indeterminate state and radio groups.
Checkboxes
<label class="og-check"><input type="checkbox" class="og-checkbox" checked /> Email me receipts</label>
<label class="og-check"><input type="checkbox" class="og-checkbox" /> Weekly summary</label>
<label class="og-check"><input type="checkbox" class="og-checkbox" disabled /> Disabled</label>Radio group
<fieldset class="og-radio-group og-radio-group--row">
<legend class="og-label">Billing</legend>
<label class="og-check"><input type="radio" name="checkbox" class="og-radio" checked /> Monthly</label>
<label class="og-check"><input type="radio" name="checkbox" class="og-radio" /> Yearly</label>
</fieldset>React
import { Checkbox } from '@og-ui/react';
<Checkbox label="Email me receipts" defaultChecked />
<Checkbox label="Select all" indeterminate />In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Space toggles a checkbox.
- A radio group is one Tab stop; arrow keys move and select within it.
- Group radios in a fieldset with a legend so the group name is announced.
Install
npx @og-ui/cli add checkbox
npx @og-ui/cli add checkbox --react # with the React component