Skip to content
StackD
Lava lines, the StackD component

Text · Free

Lava lines

A word, a circle or a person in rows of small rounded bars, painted in liquid chrome or a colour map that moves like lava under glass; the cursor stirs it.

Code is free. Figma comes with StackD Pro.

See it in the store ›

Details

Category
Text
Plan
Free
Code
React + Tailwind, TypeScript · 255 lines
Files
LavaLines.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

A word, a circle or a person drawn in rows of small rounded bars, like a signal on lines. Paint it in liquid chrome or a colour map that moves like lava under glass: soft blobs slowly melt into each other, every bar has a bright rim, and the cursor stirs it. Or flat in ink.

Canvas, no other libraries. It moves only while it's on screen, at 30 frames a second, and stands still with reduced motion. React + Tailwind.

Install

With the shadcn CLI:

npx shadcn@latest add https://www.stackd.codes/r/lava-lines.json

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD Lava lines component to this project. Use the StackD MCP server: call get_component with { "name": "lava-lines" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.

Use

  1. Copy LavaLines.tsx and ChromeWord.tsx into the same folder (for example components/). Lava lines uses

Chrome word's paints.

  1. Use it:
import { LavaLines } from './components/LavaLines'

<LavaLines text="LAVA" width={900} height={300} />
<LavaLines shape="circle" paint="neon" width={320} height={320} />
<LavaLines shape="person" paint="fire" />

The paints glow best on black: put it on a dark background, or use paint="ink" with theme="light" on white.

In Next.js the files already start with 'use client'. In other React setups that line does nothing.

Options

PropDefaultWhat it does
shape'word''word', 'circle' or 'person'
text'LAVA'The word, for shape="word". Short and bold reads best
rows9 for a word, 12 otherwiseRows of bars
paint'metal''metal' (chrome), 'neon', 'fire', 'sea', 'pop', or 'ink' (flat)
theme'dark''dark' on ink, 'light' on white (for ink)
width, height320Size in px
follow0.7How much the cursor stirs the lava, 0 to 1

Licence

You can use it in personal and commercial projects. Don't resell or share the component on its own.

Made by StackD · stackd.codes