Carousel
Gallery With Lightbox
A strip of thumbnails where a click opens the shot large above the page: arrows, a "3 of 12" counter, and the focus trap and Escape inherited from the native dialog.
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
- the gallery heading through label and the set of frames through shots
- the counter template counter with the {n} and {total} placeholders
- the proportions of the large frame through ratio: 4:3, 16:9 or 1:1
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/carousel-017?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
<Carousel017
label="Route shoot"
shots={[{ title: "Dawn over the fjord", hue: 250 }]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Heading
label· default: Route shoot- Counter
counter· default: {n} of {total}- Ratio
ratio· default: 4:3- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Carousel
FAQ
- How do I add Gallery With Lightbox 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 Gallery With Lightbox depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Gallery With Lightbox?
- Adapt: the gallery heading through label and the set of frames through shots; the counter template counter with the {n} and {total} placeholders; the proportions of the large frame through ratio: 4:3, 16:9 or 1:1. Keep as installed: the local --vibeui-carousel-017-* palette — do not swap it for your theme tokens; the native <dialog> and showModal(): the focus trap, Escape and the dimmed backdrop are written by the browser and take months to fix in a hand-rolled one; the html:has(dialog[open]:modal){overflow:hidden} rule — showModal() makes the background inert but does not stop the page from scrolling.
- Is Gallery With Lightbox 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/carousel-017.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 client component: the index of the open shot lives in useState and the window is a native <dialog> opened through showModal(). One file, no dependencies, the palette in the local --vibeui-carousel-017-* variables. The shots are not images: every one is described by a hue in degrees and painted with a gradient through the --vibeui-carousel-017-hue variable, so the item carries neither pictures nor network requests. The modal mode gives the focus trap, Escape and the dimmed backdrop for free; the html:has(dialog[open]:modal){overflow:hidden} rule adds what the browser does not do — locking the page scroll. The arrows inside the window cycle through the shots, ArrowLeft and ArrowRight do the same from the keyboard, and the counter is assembled from the counter template. The defaultOpen prop opens the window non-modally through show(): it stays inside the block and lands in the showcase frame.
Tags
- gallery
- lightbox
- dialog
- carousel
- client
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…