Burning Text
FreeNewSampleWebGL flames rise from the real glyphs, tapering and swaying like a campfire, while the letters glow and embers drift up. The whole palette derives from one color, so a blue flame is one prop away.
- text
- shader
- hero
- fire
cool
Customize
These controls show a few ways to adapt it. The source is fully editable.
Install
Not published yetnpx shadcn@latest add @uicoolkit/burning-textInstall commands go live when this item ships to the registry.
Dependencies
Use with an agent
Copy a prompt with this component, your current preview settings and links to its docs.
Add the UICoolKit "Burning Text" component (burning-text) to this project. Docs: https://uicoolkit.com/components/burning-text Agent docs: https://uicoolkit.com/components/burning-text.md Install: npx shadcn@latest add @uicoolkit/burning-text Preview settings to match: accent Ember, radius 12px, motion on, flame campfire. Use the documented props and className hooks rather than editing internals, and wire it to this app's real state. (Note: this is a sample item from the UICoolKit website shell and is not published yet.)
<h1>
Ship <BurningText>cool</BurningText> products faster.
</h1>| Prop | Type | Default |
|---|---|---|
childrenThe word to set on fire. It stays real, selectable text. | string | — |
flameFlame height, sway and speed. | "candle" | "campfire" | "blaze" | "campfire" |
colorFlame color; letters, glow and embers derive from it. | string | var(--accent) |
sparksDrifting embers above the word. | boolean | true |
speedAnimation speed multiplier for flames, glow and embers. | number | 1 |
stillFreeze on a single frame. | boolean | false |
classNameMerged onto the root; inherits the surrounding font. | string | — |
Every part accepts className, and consumer classes are merged last so they win. Control state from your own data, replace any content, and tune or disable motion.
<BurningText
className="rounded-none border-2 border-black bg-yellow-300 font-mono"
motion={{ duration: 0.2 }}
/>- The word remains real text; flames, glow and embers are aria-hidden.
- Fire is kept clear of the glyphs, and dark mode adds an edge, so the word stays legible.
- Reduced motion shows a single still frame without embers.
An original UICoolKit component, designed and built from scratch.
Free items are MIT licensed. Pro items are licensed per purchase.