Code
In context
Install · Free Web Component
One file, no dependencies. Porcelain 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 with a typed
itemsarray (buttons or links) and TypeScript types - Coloured tiles: a background and icon colour per item, for app launchers and brand docks
- The vanilla Web Component, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| size | number (px) | 52 | Tile size at rest; the bar and gaps scale with it. |
| magnify | number | 1.6 | How large the tile under the pointer gets. 1 turns the wave off. |
| theme | 'light' | 'dark' | 'light' | Frosted white or smoked glass. |
| elevation | 0..5 | 3 | Depth of the bar’s shadow. |
| items | { label, icon, active, href, onClick }[] | — | React only. In HTML, put <button> or <a> children inside with data-label. |
| tile / ink Pro | CSS background / colour | — | Per-item tile background and icon colour. |
The bar blurs what is behind it, so it reads best over a photo or a coloured page. Tiles are real buttons or links: Tab moves through them, and the focused tile swells like a hovered one. On touch screens the wave is off and tiles simply press. Reduced motion snaps sizes instead of easing. It uses no WebGL.
More components
- Tide Slide
- Pearl Code
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Pearl Select
- Pearl Accordion
- Pearl Calendar
- Pearl Chip
- 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