Feedback
Intent Card
A card with intent: while the pointer rests on the link a waiting bar grows beneath it, and only then does the card open — a passing sweep opens nothing.
- hovercard
- delay
- hover intent
- progress
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 in the header: https://vibeui.ru/c/hovercard-007?lang=en
Подробности смотрите в разделе storage pricingХранение файловПервые 50 ГБ входят в любой тариф. Дальше считаем по 4 ₽ за гигабайт в месяц, округляя вниз до целого.карточка раскроется через 0.45 с наведения — проведите курсором мимо, карточка не откроется.
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
# Install and place "hovercard-007" (Intent Card) from VibeUI
## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/hovercard-007.json
Registry item: https://vibeui.ru/r/hovercard-007.json
Installs to: components/vibeui/hovercard-007.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.
Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.
## 2. What it is
A card with intent: while the pointer rests on the link a waiting bar grows beneath it, and only then does the card open — a passing sweep opens nothing.
A hover card with an opening delay and a visible waiting bar. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Hovercard007 } from "@/components/vibeui/hovercard-007"
<Hovercard007
label="storage pricing"
title="File storage"
delay={0.45}
/>
Read the installed file for the full prop list.
## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.
Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)
## 5. Keep exactly as installed
- the local --vibeui-hovercard-007-* palette — do not swap it for your theme tokens
- the delay only in the open state: in the base rule it would also delay hiding
- the bar duration matching the delay — otherwise the indicator lies about the wait
- the zero delay in the base rule: that is the cancel-on-leave mechanism
- opening on :focus-within — from the keyboard the card is otherwise invisible
- the paragraph's own light surface: without it the dark text disappears on a dark background
## 6. You may change
- the delay length through delay
- the link text through label
- the heading through title and the explanation through text
- the bar colour through the --vibeui-hovercard-007-accent variable
## 7. Rules
- A delay over a second reads as a bug: 0.3 to 0.6 seconds is the sane range.
- With prefers-reduced-motion on, the transitions are off and the card opens immediately.
- The waiting bar restates the delay; if you drop it, keep the delay itself.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.
## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.For developers
npx shadcn@latest add https://vibeui.ru/r/hovercard-007.jsonhttps://vibeui.ru/r/hovercard-007.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-hovercard-007-*. Серверный: задержка стоит только в правиле открытого состояния через transition-delay, а базовое правило обнуляет её, поэтому уход курсора отменяет и полоску, и раскрытие. Полоска — псевдоэлемент ::after ссылки, растянутый scaleX за то же время, что и задержка: ожидание становится видимым. Величина живёт в --vibeui-hovercard-007-delay и приходит пропом delay.
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
import type { ComponentPropsWithoutRef, CSSProperties } from "react"
export type Hovercard007Props = Omit<
ComponentPropsWithoutRef<"div">,
"children"
> & {
label?: string
title?: string
text?: string
/** Задержка перед раскрытием в секундах: уход курсора отменяет её. */
delay?: number
}
// Идея компонента: карточка с намерением. Пока курсор стоит на ссылке, снизу
// растёт тонкая полоска ожидания, и только потом раскрывается карточка. Уход
// курсора обнуляет и полоску, и задержку — пролёт мышью ничего не открывает.
const STYLES = `
:where([data-vibeui-block="hovercard-007"]){
--vibeui-hovercard-007-bg:oklch(1 0 0);
--vibeui-hovercard-007-fg:oklch(0.22 0.014 265);
--vibeui-hovercard-007-muted:oklch(0.54 0.014 265);
--vibeui-hovercard-007-border:oklch(0.9 0.006 265);
--vibeui-hovercard-007-accent:oklch(0.55 0.16 200);
--vibeui-hovercard-007-delay:0.45s;
--vibeui-hovercard-007-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="hovercard-007"]{
width:100%;max-width:28rem;box-sizing:border-box;
padding:1rem 1.125rem;
border:1px solid var(--vibeui-hovercard-007-border);border-radius:0.875rem;
background:var(--vibeui-hovercard-007-bg);
font-family:var(--vibeui-hovercard-007-font);color:var(--vibeui-hovercard-007-fg);
}
[data-vibeui-block="hovercard-007"] [data-part="line"]{margin:0;font-size:0.875rem;line-height:1.7}
/* Ожидание и карточка привязаны к ссылке в строке, а не ко всему абзацу. */
[data-vibeui-block="hovercard-007"] [data-part="host"]{position:relative;display:inline-block}
[data-vibeui-block="hovercard-007"] [data-part="link"]{
position:relative;display:inline-block;
color:var(--vibeui-hovercard-007-accent);font-weight:640;text-decoration:none;
border-bottom:1px solid color-mix(in oklab,var(--vibeui-hovercard-007-accent) 40%,transparent);
}
[data-vibeui-block="hovercard-007"] [data-part="link"]:focus-visible{outline:2px solid var(--vibeui-hovercard-007-accent);outline-offset:2px;border-radius:0.25rem}
/* Полоска ожидания: растёт ровно столько, сколько длится задержка. */
[data-vibeui-block="hovercard-007"] [data-part="link"]::after{
content:"";position:absolute;left:0;bottom:-1px;height:2px;width:100%;
transform-origin:left center;transform:scaleX(0);
background:var(--vibeui-hovercard-007-accent);
transition:transform var(--vibeui-hovercard-007-delay) linear;
}
[data-vibeui-block="hovercard-007"] [data-part="host"]:hover [data-part="link"]::after,
[data-vibeui-block="hovercard-007"] [data-part="host"]:focus-within [data-part="link"]::after{transform:scaleX(1)}
[data-vibeui-block="hovercard-007"] [data-part="card"]{
position:absolute;left:0;top:calc(100% + 0.5rem);z-index:20;
display:flex;flex-direction:column;gap:0.375rem;
width:17rem;box-sizing:border-box;padding:0.8125rem 0.875rem;
border:1px solid var(--vibeui-hovercard-007-border);border-radius:0.875rem;
background:var(--vibeui-hovercard-007-bg);
box-shadow:0 22px 46px -28px oklch(0.2 0.02 265 / 55%);
opacity:0;visibility:hidden;translate:0 -0.25rem;
transition:opacity .14s ease 0s,translate .14s ease 0s,visibility .14s 0s;
}
/* Задержка стоит только в открытом состоянии: уход курсора отменяет её. */
[data-vibeui-block="hovercard-007"] [data-part="host"]:hover [data-part="card"],
[data-vibeui-block="hovercard-007"] [data-part="host"]:focus-within [data-part="card"]{
opacity:1;visibility:visible;translate:0 0;
transition-delay:var(--vibeui-hovercard-007-delay);
}
[data-vibeui-block="hovercard-007"] [data-part="title"]{font-size:0.875rem;font-weight:660;line-height:1.3}
[data-vibeui-block="hovercard-007"] [data-part="text"]{display:block;margin:0;font-size:0.8125rem;line-height:1.5;color:var(--vibeui-hovercard-007-muted)}
[data-vibeui-block="hovercard-007"] [data-part="hint"]{
padding-top:0.375rem;border-top:1px solid var(--vibeui-hovercard-007-border);
font-size:0.6875rem;color:var(--vibeui-hovercard-007-muted);
}
[data-vibeui-block="hovercard-007"] [data-part="hint"] b{color:var(--vibeui-hovercard-007-fg);font-weight:650;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="hovercard-007"] *{animation:none!important;transition:none!important}}
`
/**
* Карточка с задержкой раскрытия: полоска ожидания и отмена при уходе курсора.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Hovercard007({
label = "тарифы на хранение",
title = "Хранение файлов",
text = "Первые 50 ГБ входят в любой тариф. Дальше считаем по 4 ₽ за гигабайт в месяц, округляя вниз до целого.",
delay = 0.45,
className,
style,
...props
}: Hovercard007Props) {
const palette = {
"--vibeui-hovercard-007-delay": `${delay}s`,
...style,
} as CSSProperties
return (
<>
<style href="vibeui-hovercard-007" precedence="medium">
{STYLES}
</style>
<div
{...props}
data-vibeui-block="hovercard-007"
className={className}
style={palette}
>
<p data-part="line">
Подробности смотрите в разделе{" "}
<span data-part="host">
<a
data-part="link"
href="#pricing"
aria-describedby="vibeui-hovercard-007-card"
>
{label}
</a>
<span
data-part="card"
id="vibeui-hovercard-007-card"
role="tooltip"
>
<span data-part="title">{title}</span>
<span data-part="text">{text}</span>
<span data-part="hint">
карточка раскроется через <b>{delay} с</b> наведения
</span>
</span>
</span>{" "}
— проведите курсором мимо, карточка не откроется.
</p>
</div>
</>
)
}