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 — the text takes any React content
- 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 |
|---|---|---|---|
| kind | 'empty' | 'search' | 'error' | 'done' | 'empty' | The picture: a resting pearl; a lens over the well; the pearl cracked in two with a coral halo; a check drawn in one stroke with a green halo. |
| heading | string | — | The title, e.g. "No projects yet". (React: title.) |
| text | string | — | One line of explanation. Child content replaces it, so the text can hold a link. |
| action | string | — | Label of the button under the text; without it there is no button. Pressing it fires action. |
| size | number (px) | 132 | Height of the picture; the text and the button follow it within readable limits. |
| heading-level | 2..6 | 3 | Which heading tag the title uses, to fit your page outline. |
| theme | 'light' | 'dark' | 'light' | White porcelain or dark. |
| sound | boolean | off | A porcelain tap on the action. Also on for everything inside an element with data-ui-sound="on". |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the halo and of the button glow, or a custom tint. error and done keep their coral and green halo. Free build ships Aurora only. |
The picture is decorative and hidden from screen readers; the title is a real heading and the action a real button. The ghost outlines lean toward the pointer while it is over the component and drift on their own otherwise; with reduced motion everything rests. It has no background of its own — put it straight into the empty list, table or panel. For a state that announces itself (a failed load), wrap it in an element with role="status" or role="alert". All CSS, no WebGL.
More components
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- 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