Blog
Sticky Contents
An article layout with a sticky table of contents: the active item is marked with an accent bar and colour, and on a narrow block the column becomes a plain list before the text.
What you can change
- the sections array: ids, headings and paragraphs
- activeId — which item is highlighted
- eyebrow and title above the layout
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.ru/c/blog-010?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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The block is self-contained: one file, no dependencies, its own palette in local variables --vibeui-blog-010-*. A server component: the active item is set by the activeId prop and marked with aria-current — there is deliberately no intersection observer. The contents are a nav with aria-label, the items sit on a shared left line, and the active one overlays it with an accent bar. Stickiness is turned on by a container query at 56rem, the headings carry an id and scroll-margin-top, and the text measure is limited in ch.
Tags
- blog
- toc
- sticky
- article
- navigation
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…