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 a
poke()ref, TypeScript types and the full source - Sunset, Mint and Mono flavours, plus custom colours from Brand Fit
- The vanilla Web Component with every colour, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| state | 'idle' | 'listening' | 'thinking' | 'speaking' | 'happy' | 'idle' | What the agent is doing. Idle breathes and blinks; listening stretches up and leans in, antenna raised; thinking looks up and sways while the light flickers; speaking pulses and moves its mouth; happy squints, smiles and hops. |
| level | number 0..1 | — | Loudness of your own voice output while speaking — drives the inner light, the mouth and the stretch. Leave it out and the agent murmurs by itself. |
| size | number (px) | 96 | Width and height. Readable from about 40px. |
| follow | boolean | true | Eyes follow the pointer anywhere on the page. follow="false" keeps them wandering on their own. |
| interactive | boolean | true | A real button: focusable, pressable with Enter or Space, draggable, fires press. interactive="false" makes it a picture (role="img"). |
| label | string | 'Assistant' | Accessible name of the button or picture. |
| theme | 'light' | 'dark' | 'light' | Tunes the shadow and how far the inner light spills onto the background. |
| press | event | — | Fired on click, tap, Enter or Space — not after a pull. In React: onPress. |
| poke(strength?) | method | — | Flicks it from code: a squash and a sideways wobble — for a new message or a finished task. |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Jelly colour family, or a custom tint. Free build ships Aurora only. |
The body is a single SVG path rebuilt every frame from four springs — squash, lean, a lagging belly and the antenna tip — so a pull is a real deformation, not a canned animation, and the highlights ride the surface while the face trails inside the jelly. No filters, no canvas, no WebGL: every soft edge is a gradient that ends at zero. Dragging uses touch-action: none on the agent itself, so it can be pulled on phones. It pauses off-screen and in a hidden tab; with reduced motion it holds one settled pose per state.
More components
- Stream Text
- Plasma Orb
- Voice Wave
- Plush Buddy
- Mercury Orb
- Prompt Input
- Voice Orb
- Alien Face
- Tide Slide
- Pearl Code
- Ink Sphere
- Frost Card
- Holo Card
- 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
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Chip
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- 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
- Aurora Ring
- Glass Toggle
- Firefly Button
- Pearl Button
- Pearl Loader
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel