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 |
|---|---|---|---|
| text | string | — | What the tip says. Keep it to a few words. |
| kbd | string | — | A keyboard shortcut shown as a small key cap, e.g. "⌘K". |
| side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Preferred side; it flips to the opposite one when there is no room, and slides along the edge to stay on screen. |
| delay | number (ms) | 140 | Hover time before it appears. Skipped when another tip was showing a moment ago, and on keyboard focus. |
| open | boolean | off | Keeps it visible — for onboarding hints. |
| disabled | boolean | off | Never shows. |
| theme | 'light' | 'dark' | 'light' | White or dark glass. |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the glint on the rim, or a custom tint. Free build ships Aurora only. |
Wrap the control the tip describes. It shows on hover and on keyboard focus, hides on Escape, on press and when the pointer leaves, and is wired to the control with aria-describedby so screen readers read it. A tip is a hint, not a label: an icon-only button still needs its own aria-label. Touch screens have no hover, so nothing essential should live only in a tip. It is positioned inside the wrapper, so a parent with overflow: hidden can clip it.
More components
- Glass Toast
- Glass Sheet
- Glass Menu
- Tide Slide
- Pearl Code
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Pearl Select
- Pearl Accordion
- Pearl Calendar
- Glass Nav
- Pearl Tabs
- Glass Command
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Chip
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Tabbar
- 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