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 fur, 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 leans in with its ears up; thinking looks up and sways; speaking bounces and moves its mouth; happy squints, smiles and hops. |
| level | number 0..1 | — | Loudness of your own voice output while speaking — drives the mouth and the bounce. Leave it out and the buddy 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, 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 contact shadow and the rim light for the background. |
| press | event | — | Fired on click, tap, Enter or Space. In React: onPress. |
| poke(strength?) | method | — | Squeezes it from code — for a new message, a finished task, a greeting. |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Fur colour family, or a custom tint. Free build ships Aurora only. |
The fur is a few hundred combed strands plus a turbulence filter, drawn once and then only moved with transforms — the filter never re-runs, so several buddies on a page stay cheap. The squash is a damped spring, not a keyframe, so a press in the middle of a hop still lands properly. 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
- Gummy Agent
- 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