Layouts
Sticky Media
A sticky frame with chapters: the frame stays on the left, chapters pass on the right, and the frame changes as the reader reaches each. Pure CSS on named view timelines. For product stories, tours and long reads.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- heading and lead — the title and subtitle above the layout; without them — a ghost
- items — slots in order: 01 frame (media per chapter via slots 02–04), 02 chapter, 03 chapter, 04 chapter; title/text/value/media
- media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/layout-006?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Layout006
heading="Layout heading"
lead="A one-line subtitle."
items={[
{ title: "frame (media per chapter via slots 02–04)", text: "The main thing, briefly." },
{ title: "chapter", text: "The main thing, briefly." },
{ title: "chapter", text: "The main thing, briefly." },
{ title: "chapter", text: "The main thing, briefly." },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Frame
side· default: left- Numbers
numbers· default: on- Accent
accent· default: theme colour
More in Layouts
FAQ
- How do I add Sticky Media with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Sticky Media depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Sticky Media?
- Adapt: heading and lead — the title and subtitle above the layout; without them — a ghost; items — slots in order: 01 frame (media per chapter via slots 02–04), 02 chapter, 03 chapter, 04 chapter; title/text/value/media; media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text. Keep as installed: the imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the local --vibeui-layout-006-* palette — do not swap it for your theme tokens; timeline-scope on the layout and view-timeline-name on the chapters — the only way a frame layer can listen to another chapter without JS.
- Is Sticky Media free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/layout-006.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A composite block: imports from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm dependencies, JS only for the cursor light. A 5/6 grid from 56rem (data-side=right swaps the order), the stage is sticky with a stack of three layers in one grid-area; each chapter declares a view-timeline-name, body collects them with timeline-scope, layer k animates on chapter k's timeline (entry 20–80% range). Layer k media comes from items[k].media, else items[0].media. Without support the first layer is visible. The tile cascade is off. Slots: 01 frame (media per chapter via slots 02–04), 02 chapter, 03 chapter, 04 chapter — items[i] with title/text/value/media, without them — a ghost. Numbers (numbers) show which slot goes where. Entrance is its own, see above; hover — cursor light and edge highlight at the pointer. Palette --vibeui-layout-006-* with light-dark, container queries, DOM order = reading order.
Tags
- layout
- sticky
- scrollytelling
- chapters
- media
- split
- story
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…