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.
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 with TypeScript types and the full 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 |
|---|---|---|---|
| shape | 'text' | 'title' | 'avatar' | 'block' | 'card' | 'text' | What it stands in for. card is a ready composition: an avatar, two lines and a block. |
| lines | number | 3 | Lines of text for shape="text"; the last one is shorter. Their height follows the font size around the skeleton. |
| width | number (px) | CSS width | parent width (title: 58%) | Width of the placeholder and of the revealed content. |
| height | number (px) | CSS height | block 120, avatar 44 | Height of a block or a title; the diameter of an avatar. |
| radius | number (px) | CSS radius | by shape | Corner radius of the wells. |
| loaded | boolean | off | Set it when the data has arrived: the wells fill with light and dissolve, the children condense out of a blur and the box glides to their height. Remove it to load again. |
| children | elements | — | The real content. Until loaded it is invisible, inert and hidden from screen readers; the host carries aria-busy="true". |
| theme | 'light' | 'dark' | 'light' | Pale wells on a light page or dark ones. |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the beam and of the fill, or a custom tint. Free build ships Aurora only. |
Every skeleton on the page shares one clock and takes the beam’s position from where it sits on the page, so a card on the left lights before one on the right and nothing blinks out of step — no wrapper or provider needed. The beam leans a little, so lower rows light slightly later. The host has aria-busy while loading; add your own “Loading…” status text if the region needs announcing. Under prefers-reduced-motion the beam stands still and the content simply fades in. The wells need a little of the page showing round them, so they read best on a plain surface. All CSS and the Web Animations API, no WebGL.
More components
- Halo Avatar
- Pearl Steps
- Pearl Table
- Pearl Empty
- Tide Slide
- Pearl Code
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Glass Toast
- Pearl Select
- Glass Sheet
- Pearl Accordion
- Glass Tip
- Pearl Calendar
- Glass Nav
- Pearl Tabs
- Glass Command
- Pearl Chip
- 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
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Aurora Ring
- Glass Toggle
- Firefly Button
- Pearl Button
- Pearl Loader
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel