Tabs
Scrolling Tabs
A scrolling row of tabs with edge shadows: a shadow appears only on the side that still has content, and all of it without JS.
What you can change
- the items array: labels and panel content
- defaultId — which tab starts open
- the width and density of the shadows in the background size
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/tabs-007?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 component is self-contained: one file, no dependencies, its own palette in the local --vibeui-tabs-007-* variables. A client component: "use client" for the selected tab and for the keyboard, but the edge shadows are made with pure CSS: four gradients with different background attachments — the "mask" in the background colour travels with the content (background-attachment:local) while the shadow itself stays in place (scroll), so at a fully scrolled edge the shadow is covered by the mask. The arrow keys additionally bring the selected tab into view through scrollIntoView.
Tags
- tabs
- scroll
- shadow
- overflow
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…