Forms
Slider
A native range input whose filled track follows the thumb.
Slider
<label class="og-field" style="max-width: 20rem">
<span class="og-label">Volume</span>
<input type="range" class="og-slider" min="0" max="100" value="62" />
</label>React
import { Slider } from '@og-ui/react';
<Slider label="Volume" defaultValue={62} />In every theme
Clean SaaS
Glassmorphism 2.0
Liquid glass
Neumorphism / Soft UI
Claymorphism
Neubrutalism
Aurora / mesh gradient
Keyboard and screen readers
- Arrow keys step by 1; Page Up/Down by 10%; Home and End jump to the ends.
- Add aria-valuetext when the number needs a unit (“62 percent”).
- og-ui.js keeps the fill in sync while dragging.
Install
npx @og-ui/cli add slider
npx @og-ui/cli add slider --react # with the React component