Card
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.
What you can change
- the title and description copy and the meta content
- the aspect ratio through ratio
- the badge and the duration caption — both drop out on an empty string
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/card-012?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 local variables --vibeui-card-012-*. Server-side: no hooks. The frame holds its proportion through aspect-ratio, the value arriving from data-ratio and a variable, so four ratios live without duplicating rules. The badge and the duration lie over the frame on semi-transparent backings rather than beside it. An empty frame is filled with gradients — an image is not required; a supplied <img> gets object-fit:cover and fills the frame without distortion.
Tags
- card
- media
- aspect-ratio
- grid
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…