Carousel
Centering Thumbs
A gallery with a thumbnail strip where the chosen thumb scrolls itself to the centre and arrow keys walk the frames.
What you can change
- the frames through shots: title, place and hue
- the gallery label through label, the strip label through stripLabel, the thumb label template through thumbLabel and the block role through roleDescription
- the accent colour through accent
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/carousel-013?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, zero dependencies, the palette in the local --vibeui-carousel-013-* variables. A client component ("use client") — the position is held by useState. There are usually more thumbnails than fit the width, so the selected one is brought to the centre by a scrollIntoView({block: "nearest", inline: "center"}) call: block: "nearest" keeps the browser from pulling the whole page. The thumbnails are real buttons labelled "Frame N", and the selected one is marked with aria-current and a border rather than brightness alone: dimming the neighbours is barely noticeable on a small screen.
Tags
- carousel
- gallery
- thumbnails
- keyboard
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…