Display
Three Column Meta
A row with details laid out in three labelled columns as dt/dd pairs, reflowing from its own width through a container query.
- item
- row
- metadata
- container
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/item-006?lang=en
Stage two estimate
- Владелец
- Ирина Лаптева
- Обновлён
- 14 марта
- Размер
- 2,4 МБ
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 "item-006" (Three Column Meta) 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/item-006.json
Registry item: https://vibeui.ru/r/item-006.json
Installs to: components/vibeui/item-006.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 row with details laid out in three labelled columns as dt/dd pairs, reflowing from its own width through a container query.
A list row with a title and three labelled detail cells that reflow with the row width. Zero dependencies, one file.
## 3. How to use it
import { Item006 } from "@/components/vibeui/item-006"
<Item006 title="Estimate" cells={[{ label: "Owner", value: "Irina" }]} />
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-item-006-* palette — do not swap it for your theme tokens
- the layout on the inner wrapper: an @container rule does not apply to the container itself
- the dt/dd pairs — label and value must be tied by markup, not by proximity
- container-type:inline-size on the root: the layout follows the row width, not the viewport
- tabular figures on the values — the column gets compared top to bottom
- the li element: rows belong in a list, not a pile of divs
## 6. You may change
- title — the record title
- the cells array: cell labels and values
- the accent through the accent prop and the container query breakpoint
- the row width
## 7. Rules
- Three cells is the designed maximum: a fourth breaks the rhythm in a narrow column.
- Container queries need a modern browser; in older ones the row simply stays single-column.
- Wrap the rows in a <ul>: a lone li outside a list is invalid.
- 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/item-006.jsonhttps://vibeui.ru/r/item-006.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-item-006-*. Серверный: хуков нет. Корень — li с container-type:inline-size; вся раскладка лежит на внутреннем [data-part="shell"], потому что контейнерный запрос действует на потомков, а не на сам контейнер. Ячейки описаны тегом dl с парами dt/dd, поэтому подпись и значение связаны разметкой. Значения набраны табличными цифрами и обрезаются многоточием.
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 Item006Cell = {
label: string
value: string
}
export type Item006Props = Omit<
ComponentPropsWithoutRef<"li">,
"children" | "title"
> & {
title?: string
cells?: Item006Cell[]
accent?: string
}
// Идея компонента: строка, где подробности разложены по трём подписанным
// колонкам, а не слиты в одну серую фразу через точки. Каждая ячейка — пара
// dt/dd, поэтому «Владелец» и «Ирина» связаны разметкой, а не соседством.
// Раскладка считается от ширины самой строки через контейнерный запрос: в узкой
// колонке три ячейки встают друг под друга, в широкой — в ряд. Правило запроса
// целит во внутреннюю обёртку, потому что на сам контейнер оно не действует.
const STYLES = `
:where([data-vibeui-block="item-006"]){
--vibeui-item-006-bg:oklch(1 0 0);
--vibeui-item-006-fg:oklch(0.23 0.014 265);
--vibeui-item-006-muted:oklch(0.56 0.014 265);
--vibeui-item-006-border:oklch(0.9 0.006 265);
--vibeui-item-006-accent:oklch(0.55 0.19 262);
--vibeui-item-006-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="item-006"]{
container-type:inline-size;
width:100%;max-width:30rem;box-sizing:border-box;padding:0.75rem 0.875rem;
list-style:none;
background:var(--vibeui-item-006-bg);
border:1px solid var(--vibeui-item-006-border);border-radius:0.75rem;
font-family:var(--vibeui-item-006-font);color:var(--vibeui-item-006-fg);
}
[data-vibeui-block="item-006"] *{box-sizing:border-box}
[data-vibeui-block="item-006"] [data-part="shell"]{display:grid;gap:0.625rem}
[data-vibeui-block="item-006"] [data-part="title"]{
margin:0;font-size:0.875rem;font-weight:650;line-height:1.3;
border-left:2px solid var(--vibeui-item-006-accent);padding-left:0.5rem;
}
[data-vibeui-block="item-006"] [data-part="cells"]{
display:grid;gap:0.5rem;margin:0;
}
[data-vibeui-block="item-006"] [data-part="cell"]{display:grid;gap:0.0625rem;min-width:0}
[data-vibeui-block="item-006"] dt{
font-size:0.625rem;font-weight:650;letter-spacing:0.04em;text-transform:uppercase;
color:var(--vibeui-item-006-muted);
}
[data-vibeui-block="item-006"] dd{
margin:0;font-size:0.8125rem;line-height:1.3;font-variant-numeric:tabular-nums;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
@container (min-width: 22rem){
[data-vibeui-block="item-006"] [data-part="shell"]{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;gap:0.875rem}
[data-vibeui-block="item-006"] [data-part="cells"]{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="item-006"] *{animation:none!important;transition:none!important}}
`
const DEFAULT_CELLS: Item006Cell[] = [
{ label: "Владелец", value: "Ирина Лаптева" },
{ label: "Обновлён", value: "14 марта" },
{ label: "Размер", value: "2,4 МБ" },
]
/**
* Строка списка с подробностями в трёх подписанных колонках.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Item006({
title = "Смета на второй этап",
cells = DEFAULT_CELLS,
accent,
className,
style,
...props
}: Item006Props) {
const palette = {
...(accent ? { "--vibeui-item-006-accent": accent } : null),
...style,
} as CSSProperties
return (
<>
<style href="vibeui-item-006" precedence="medium">
{STYLES}
</style>
<li
{...props}
data-vibeui-block="item-006"
className={className}
style={palette}
>
<div data-part="shell">
<p data-part="title">{title}</p>
<dl data-part="cells">
{cells.map((cell) => (
<div key={cell.label} data-part="cell">
<dt>{cell.label}</dt>
<dd>{cell.value}</dd>
</div>
))}
</dl>
</div>
</li>
</>
)
}