Display
Order Status
An order status where the future is drawn differently from the past: completed steps carry a check mark and a solid line, upcoming ones an empty circle and a dashed line.
- timeline
- order
- status
- steps
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/timeline-003?lang=en
Заказ № 4471
Arrives March 14- Оплачен
12 марта, 10:02
- Собран на складе
12 марта, 18:40
- Едет в ваш город
Прибудет 14 марта
сейчас - В пункте выдачи
- Получен
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 "timeline-003" (Order Status) 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/timeline-003.json
Registry item: https://vibeui.ru/r/timeline-003.json
Installs to: components/vibeui/timeline-003.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
An order status where the future is drawn differently from the past: completed steps carry a check mark and a solid line, upcoming ones an empty circle and a dashed line.
An order status: check marks on what is done, a dashed line ahead, and a highlighted "now" chip on the current step. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Timeline003 } from "@/components/vibeui/timeline-003"
<Timeline003
orderLabel="Order #4471"
eta="Arrives March 14"
steps={[
{ title: "Paid", note: "March 12, 10:02", state: "done" },
{ title: "On the way", note: "Arrives March 14", state: "current" },
{ title: "Delivered", state: "todo" },
]}
/>
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-timeline-003-* palette — do not swap it for your theme tokens
- the dashed line ahead: "not yet" must be readable from the line's shape, not its shade
- the check mark built from pseudo-element borders — it drags in no icon font
- the current step's panel: it is read first when there is no time for the whole list
- the "now" chip beside the current step — colour alone does not convey state
- the block's own light surface: dark text disappears on a dark page
## 6. You may change
- the order number through orderLabel and the estimate through eta
- the steps through steps: title, note and state done/current/todo
- the accent colour through accent
- the card width through the root element's max-width
## 7. Rules
- The component does not compute state: marking a step as current is the app's job.
- There must not be two current steps — the panel would stop meaning "you are here".
- The note is optional, but without it the future steps all look the same.
- 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/timeline-003.jsonhttps://vibeui.ru/r/timeline-003.jsonКомпонент самодостаточен: один файл, без зависимостей, палитра в локальных переменных --vibeui-timeline-003-*. Серверный: хуков нет. Состояние шага передаётся тремя способами сразу — формой метки (галочка, кольцо, пустой кружок), стилем линии (сплошная против пунктирной) и плашкой у текущего шага. Галочка нарисована двумя бордюрами псевдоэлемента, поэтому иконочный шрифт не нужен. Текущий шаг вынесен на подложку из color-mix и помечен словом «сейчас»: его читают первым и часто единственным. Собственная светлая подложка обязательна — текст тёмный.
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 Timeline003Step = {
title: string
note?: string
state?: "done" | "current" | "todo"
}
export type Timeline003Props = Omit<
ComponentPropsWithoutRef<"section">,
"children"
> & {
steps?: Timeline003Step[]
orderLabel?: string
eta?: string
accent?: string
}
// Идея компонента: статус заказа, где будущее нарисовано иначе, чем прошлое.
// Пройденные шаги несут галочку и сплошную линию, будущие — пустой кружок и
// пунктир: покупателю видно не только «где сейчас», но и сколько осталось.
// Текущий шаг вынесен на светлую плашку, поэтому он читается первым, даже
// если весь список прочитать некогда.
const STYLES = `
:where([data-vibeui-block="timeline-003"]){
--vibeui-timeline-003-bg:oklch(1 0 0);
--vibeui-timeline-003-fg:oklch(0.22 0.014 265);
--vibeui-timeline-003-muted:oklch(0.57 0.014 265);
--vibeui-timeline-003-border:oklch(0.91 0.006 265);
--vibeui-timeline-003-done:oklch(0.58 0.14 152);
--vibeui-timeline-003-accent:oklch(0.55 0.18 262);
--vibeui-timeline-003-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="timeline-003"]{
display:flex;flex-direction:column;gap:0.75rem;
width:100%;max-width:24rem;box-sizing:border-box;padding:0.9375rem;
background:var(--vibeui-timeline-003-bg);
border:1px solid var(--vibeui-timeline-003-border);border-radius:0.875rem;
font-family:var(--vibeui-timeline-003-font);color:var(--vibeui-timeline-003-fg);
}
[data-vibeui-block="timeline-003"] [data-part="head"]{display:flex;align-items:baseline;justify-content:space-between;gap:0.75rem}
[data-vibeui-block="timeline-003"] [data-part="order"]{margin:0;font-size:0.9375rem;font-weight:650}
[data-vibeui-block="timeline-003"] [data-part="eta"]{font-size:0.75rem;color:var(--vibeui-timeline-003-muted);font-variant-numeric:tabular-nums}
[data-vibeui-block="timeline-003"] ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
[data-vibeui-block="timeline-003"] li{
position:relative;display:grid;grid-template-columns:1.25rem 1fr;gap:0.625rem;
padding:0 0 0.875rem;
}
[data-vibeui-block="timeline-003"] li:last-child{padding-bottom:0}
/* Пунктир на будущем отрезке: «ещё не случилось» читается формой линии. */
[data-vibeui-block="timeline-003"] li::before{
content:"";position:absolute;left:0.5625rem;top:1.375rem;bottom:0.125rem;
width:0;border-left:2px solid var(--vibeui-timeline-003-border);
}
[data-vibeui-block="timeline-003"] li[data-state="done"]::before{border-left-color:var(--vibeui-timeline-003-done)}
[data-vibeui-block="timeline-003"] li[data-state="current"]::before{border-left-style:dashed}
[data-vibeui-block="timeline-003"] li[data-state="todo"]::before{border-left-style:dashed}
[data-vibeui-block="timeline-003"] li:last-child::before{display:none}
[data-vibeui-block="timeline-003"] [data-part="mark"]{
position:relative;box-sizing:border-box;
width:1.25rem;height:1.25rem;border-radius:9999px;
border:2px solid var(--vibeui-timeline-003-border);background:var(--vibeui-timeline-003-bg);
}
[data-vibeui-block="timeline-003"] li[data-state="done"] [data-part="mark"]{
border-color:var(--vibeui-timeline-003-done);background:var(--vibeui-timeline-003-done);
}
/* Галочка нарисована двумя бордюрами: иконочный шрифт сюда не тащим. */
[data-vibeui-block="timeline-003"] li[data-state="done"] [data-part="mark"]::after{
content:"";position:absolute;left:0.3125rem;top:0.125rem;
width:0.25rem;height:0.5rem;
border:solid oklch(1 0 0);border-width:0 2px 2px 0;transform:rotate(45deg);
}
[data-vibeui-block="timeline-003"] li[data-state="current"] [data-part="mark"]{
border-color:var(--vibeui-timeline-003-accent);
box-shadow:0 0 0 4px color-mix(in oklab,var(--vibeui-timeline-003-accent) 16%,transparent);
}
[data-vibeui-block="timeline-003"] [data-part="body"]{display:flex;flex-direction:column;gap:0.125rem;min-width:0}
[data-vibeui-block="timeline-003"] [data-part="step"]{font-size:0.875rem;font-weight:600;line-height:1.3}
[data-vibeui-block="timeline-003"] li[data-state="todo"] [data-part="step"]{color:var(--vibeui-timeline-003-muted);font-weight:500}
[data-vibeui-block="timeline-003"] [data-part="note"]{margin:0;font-size:0.75rem;line-height:1.4;color:var(--vibeui-timeline-003-muted)}
/* Текущий шаг — плашка: его читают первым и часто единственным. */
[data-vibeui-block="timeline-003"] li[data-state="current"] [data-part="body"]{
padding:0.4375rem 0.625rem;margin-top:-0.3125rem;border-radius:0.5rem;
background:color-mix(in oklab,var(--vibeui-timeline-003-accent) 8%,transparent);
}
[data-vibeui-block="timeline-003"] [data-part="now"]{
align-self:flex-start;margin-top:0.25rem;
padding:0.0625rem 0.375rem;border-radius:9999px;
background:var(--vibeui-timeline-003-accent);color:oklch(1 0 0);
font-size:0.625rem;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="timeline-003"] *{animation:none!important;transition:none!important}}
`
const DEFAULT_STEPS: Timeline003Step[] = [
{ title: "Оплачен", note: "12 марта, 10:02", state: "done" },
{ title: "Собран на складе", note: "12 марта, 18:40", state: "done" },
{ title: "Едет в ваш город", note: "Прибудет 14 марта", state: "current" },
{ title: "В пункте выдачи", state: "todo" },
{ title: "Получен", state: "todo" },
]
/**
* Статус заказа: галочки на пройденном, пунктир на будущем, плашка на текущем.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Timeline003({
steps = DEFAULT_STEPS,
orderLabel = "Заказ № 4471",
eta = "Доставим 14 марта",
accent,
className,
style,
...props
}: Timeline003Props) {
const palette = {
...(accent ? { "--vibeui-timeline-003-accent": accent } : null),
...style,
} as CSSProperties
return (
<>
<style href="vibeui-timeline-003" precedence="medium">
{STYLES}
</style>
<section
{...props}
data-vibeui-block="timeline-003"
className={className}
style={palette}
aria-label={orderLabel}
>
<div data-part="head">
<h3 data-part="order">{orderLabel}</h3>
<span data-part="eta">{eta}</span>
</div>
<ol>
{steps.map((step) => {
const state = step.state ?? "todo"
return (
<li key={step.title} data-state={state}>
<span data-part="mark" aria-hidden="true" />
<div data-part="body">
<span data-part="step">{step.title}</span>
{step.note ? <p data-part="note">{step.note}</p> : null}
{state === "current" ? (
<span data-part="now">сейчас</span>
) : null}
</div>
</li>
)
})}
</ol>
</section>
</>
)
}