Code
In context
Install · Free Web Component
One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.
1. Install with one command — or download the file
2. Load it and use the element
3. React + TypeScript (optional)
The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:
Pro · React + TypeScript Pro
One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.
- React component (controlled or uncontrolled, custom face) with TypeScript types, the shared WebGL core and the GLSL source
- Sunset, Mint and Mono tints, plus custom tints from Brand Fit
- The vanilla Web Component with every tint, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| sound | boolean | off | Plays a short synthesised a tick per step (and a tap of vibration on phones) when used. Also on for everything inside an element with data-ui-sound="on". |
| value | number | 0 | Current value. Fires change as it turns. |
| min / max | number | 0 / 100 | The range; a full turn covers it. |
| step | number | 1 | Snap increment, also used by the arrow keys. |
| unit | string | — | Small text after the number, such as % or °. |
| size | number (px) | 132 | Diameter; the number scales with it. |
| theme | 'light' | 'dark' | 'light' | White porcelain or a dark body. |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Halo colours, or a custom tint. Free build ships Aurora only. |
A real slider for assistive tech: arrow keys step, Page Up and Page Down jump a tenth of the range, Home and End go to the ends. The dial stops at 12 o'clock on both sides instead of wrapping. The body and the dot are CSS, so without WebGL only the halo is missing. All library components on a page share one WebGL context.
More components
- Tide Slide
- Pearl Code
- Nova Rating
- Pearl Check
- Pearl Input
- Pearl Select
- Pearl Accordion
- Pearl Calendar
- Pearl Chip
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Aurora Ring
- Glass Toggle
- Pearl Loader
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Glass Toast
- Glass Sheet
- Glass Tip
- Glass Nav
- Pearl Tabs
- Glass Command
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Tabbar
- Glass Menu
- Pearl Pricing
- Glass Bento
- Quote Wall
- Glass Cta
- Magnet Button
- Beam Border
- Spotlight Card
- Scratch Reveal
- Glass Sidebar
- Pearl Pagination
- Pearl Breadcrumb
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Firefly Button
- Pearl Button
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel