Card
Frame with overlay
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/card-025?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…
An image in a frame with a set aspect ratio: object-fit, radius, a corner badge (date, tag), a caption under the frame and a bottom overlay with a scrim — a headline and buttons over the photo. Optional slow drift of the image for banners. Everything on top comes from outside: a block with a photo does not rebuild it.
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
- src and alt
- ratio — the frame proportion
- fit — cover or contain
How to use
<Card025 src="/photos/festival.webp" alt="Festival crowd" ratio="21/9" badge="22–24 August" scrim="bottom">
<a href="/tickets">Buy a ticket</a>
</Card025>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Ratio
ratio· default: 16/9- Fit
fit· default: cover- Radius
radius· default: md- Badge
badge- Scrim
scrim· default: none- Drift
drift· default: off- Surface
background· default: theme colour- src
src- alt
alt- caption
caption· default: Frame with overlay
Used in blocks
- Timeline Historyabout-002
- About With Numbersabout-004
- Article Gridblog-001
- Office Map Cardcontact-002
- Split Media CTActa-005
- Event Pageevent-002
Similar style and content
Options in the same category with shared tags or a similar content structure.
- Film frame
Film-strip frame: photo in a perforated frame, caption with a year, title and text.
- Ratio Media Card
A card with media on top at a locked aspect ratio: the space is reserved before the image loads, so the text below never jumps.
- Figure tile
Bento tile: meta caption, figure by kind (bars, currencies, cards, list) and text. Large variant via data-large.
More in Card
FAQ
- How do I add Frame with overlay 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 Frame with overlay depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Frame with overlay?
- Adapt: src and alt; ratio — the frame proportion; fit — cover or contain. Keep as installed: a <figure> with img inside the frame: alt is real text, not an empty string, when the image carries meaning; the ratio via aspect-ratio on the frame, not a fixed height: the frame keeps its shape at any width; the scrim under the overlay — without it white text is unreadable on a light photo.
- Is Frame with overlay 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/card-025.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
Self-contained: one file, no dependencies, palette in --vibeui-card-025-*. A <figure>: the frame takes aspect-ratio from the ratio prop (auto — by the image), img with object-fit by fit, a scrim by scrim (none, bottom, full), a corner badge, a caption under the frame. The overlay is children: it sits at the bottom of the frame in white over the scrim. drift enables slow image drift, prefers-reduced-motion turns it off.
Tags
- image
- photo
- figure
- frame
- banner
- overlay
- picture
- media
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…