Ember Field
Sparks are born at the bottom, sway on their own breeze, cool from yellow to deep orange and go out. Move through them and they are pulled in and sent around the pointer; tap and a fresh handful leaps up. Colours are classes.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
The pointer is a current, not a magnet
Near the pointer, sparks are pulled in and sent around at once, so they orbit and stream past instead of collapsing into a clump. Each ember lives its own life, so there is never a visible loop. The count follows the area with a ceiling, and phones get fewer.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Ember Field for this.
Install it: npx shadcn@latest add @layro/ember-field
(the @layro registry is set up in components.json, with LAYRO_KEY in .env.local)
Import it from @/components/ui/ember-field.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @layro registry with your CLI token: see the Namespaced tab.
When to use it
Use Ember Field for a warm, celebratory section like a launch or an event: sparks rise from a glow along the bottom and gather around the pointer.
Usage
import { EmberField } from "@/components/ui/ember-field";
export function LaunchWeek() {
return (
<EmberField className="h-[480px] bg-neutral-950">
<div className="flex h-full items-center justify-center text-white">
<h2 className="text-5xl font-bold tracking-tight">Five days. Five launches.</h2>
</div>
</EmberField>
);
}API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
density | number | Sparks per 10,000 px² of area. Default 2.2. |
max | number | Hard ceiling on sparks. Default 260. |
speed | number | Rising speed multiplier. Default 1. |
hotClassName | string | Hot colour class (new sparks), read as `color`. Default amber. |
coolClassName | string | Cool colour class (dying sparks), read as `color`. Default orange. |
interactive | boolean | Gather around the pointer and burst on tap. Default true. |
Dependencies
npm packages
clsxtailwind-mergeLayro foundations, installed alongside it
layro-themeLifetime access
Every component, and everything we ship next.
- All 132 components, source included
- Every template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in Creative
All Creative componentsImage Trail
FreePhotos drop along the pointer's path and lift away a moment later.
Odometer Stats
FreeNumbers that roll into place digit by digit, like a mechanical counter.
Slice Reveal Title
FreeA title cut in line by line, like the opening of a film.
Prism Card
FreeTilts toward the pointer and bends a band of spectrum across its face.
Magnet Cluster
FreeA grid of tiles that lean toward the pointer and settle back.
Stack Shuffle
FreeA deck of cards that deals itself as you scroll.