Display
Ticked Goal Ring
A ring gauge with ticks and a goal notch: it shows both what is done and what was promised, so overachievement reads instantly without comparing two numbers.
- progress
- ring
- goal
- display
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/progress-003?lang=en
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 "progress-003" (Ticked Goal Ring) 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/progress-003.json
Registry item: https://vibeui.ru/r/progress-003.json
Installs to: components/vibeui/progress-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
A ring gauge with ticks and a goal notch: it shows both what is done and what was promised, so overachievement reads instantly without comparing two numbers.
A ring gauge: conic-gradient under a radial mask, ticks as a second conic layer and a rotated goal notch. Zero dependencies, one file, server rendered.
## 3. How to use it
import { Progress003 } from "@/components/vibeui/progress-003"
<Progress003 value={72} target={85} label="Quarter plan" unit="complete" />
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-progress-003-* palette — do not swap it for your theme tokens
- the radial mask on the arc and the ticks: without it the ring becomes a filled disc
- the number above the ring rather than inside the masked layer — the mask would cut the digits too
- the notch rotation of target × 3.6deg: any other formula drifts away from the arc
- the tabular figures: proportional ones make the caption jitter on every update
- the component's own light surface: the number and captions are dark and vanish on a dark ground
## 6. You may change
- the fact through value and the plan through target
- the heading through label and the caption under the number through unit
- the ring diameter and thickness through the size variables
- the arc colour through the accent variable
## 7. Rules
- value and target are clamped to 0–100: the ring cannot show more than one hundred percent.
- The tick step lives in repeating-conic-gradient: changing it means editing CSS and the caption both.
- Below a 5rem diameter the ticks merge into a grey rim — drop the ticks layer there.
- 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/progress-003.jsonhttps://vibeui.ru/r/progress-003.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-progress-003-*. Серверный: хуков нет. Дуга — conic-gradient, вырезанный радиальной маской, поэтому кольцо остаётся одним элементом без svg и без круга-заглушки в центре. Деления — второй слой, repeating-conic-gradient цвета подложки поверх дуги под той же маской: риски «прорезаны» в кольце, а не нарисованы отдельными элементами. Засечка цели — абсолютный слой, повёрнутый на target × 3.6deg, поэтому положение считается прямо из процента. Число лежит поверх кольца, а не внутри маскированного элемента: маска вырезала бы и цифры. role="progressbar" с aria-valuetext, который называет и факт, и цель.
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 Progress003Props = Omit<
ComponentPropsWithoutRef<"div">,
"children"
> & {
value?: number
/** Отметка цели на шкале: до неё план, после — перевыполнение. */
target?: number
label?: string
unit?: string
}
// Идея компонента: кольцевая шкала с делениями и меткой цели. Дуга и риски
// нарисованы двумя conic-gradient в одном элементе, метка цели — засечка,
// повёрнутая на нужный угол. Поэтому кольцо остаётся одним div без svg, а
// «сколько сделано» и «сколько было обещано» видно одновременно.
const STYLES = `
:where([data-vibeui-block="progress-003"]){
--vibeui-progress-003-size:8rem;
--vibeui-progress-003-thickness:0.75rem;
--vibeui-progress-003-value:0;
--vibeui-progress-003-target:0;
--vibeui-progress-003-bg:oklch(1 0 0);
--vibeui-progress-003-fg:oklch(0.24 0.014 265);
--vibeui-progress-003-muted:oklch(0.55 0.014 265);
--vibeui-progress-003-border:oklch(0.9 0.006 265);
--vibeui-progress-003-track:oklch(0.93 0.006 265);
--vibeui-progress-003-accent:oklch(0.58 0.16 155);
--vibeui-progress-003-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="progress-003"]{
display:inline-flex;flex-direction:column;align-items:center;gap:0.625rem;
box-sizing:border-box;padding:1.125rem 1.25rem;
background:var(--vibeui-progress-003-bg);
border:1px solid var(--vibeui-progress-003-border);border-radius:1.125rem;
font-family:var(--vibeui-progress-003-font);color:var(--vibeui-progress-003-fg);
text-align:center;
}
[data-vibeui-block="progress-003"] [data-part="dial"]{
position:relative;display:grid;place-items:center;
width:var(--vibeui-progress-003-size);height:var(--vibeui-progress-003-size);
}
/* Дуга: conic-gradient, вырезанный радиальной маской — кольцо без svg. */
[data-vibeui-block="progress-003"] [data-part="arc"]{
position:absolute;inset:0;border-radius:9999px;
background:conic-gradient(
var(--vibeui-progress-003-accent) calc(var(--vibeui-progress-003-value) * 1%),
var(--vibeui-progress-003-track) 0);
mask:radial-gradient(farthest-side,transparent calc(100% - var(--vibeui-progress-003-thickness)),#000 calc(100% - var(--vibeui-progress-003-thickness)));
transition:background .35s ease;
}
/* Риски: второй conic-gradient поверх дуги, повторяющийся каждые 30 градусов. */
[data-vibeui-block="progress-003"] [data-part="ticks"]{
position:absolute;inset:0;border-radius:9999px;pointer-events:none;
background:repeating-conic-gradient(var(--vibeui-progress-003-bg) 0deg 1.4deg,transparent 1.4deg 30deg);
mask:radial-gradient(farthest-side,transparent calc(100% - var(--vibeui-progress-003-thickness)),#000 calc(100% - var(--vibeui-progress-003-thickness)));
}
/* Метка цели: засечка, повёрнутая на долю круга — видно план поверх факта. */
[data-vibeui-block="progress-003"] [data-part="goal"]{
position:absolute;inset:0;pointer-events:none;
transform:rotate(calc(var(--vibeui-progress-003-target) * 3.6deg));
}
[data-vibeui-block="progress-003"] [data-part="goal"]::before{
content:"";position:absolute;left:50%;top:-2px;
width:2px;height:calc(var(--vibeui-progress-003-thickness) + 4px);
margin-left:-1px;border-radius:1px;
background:var(--vibeui-progress-003-fg);
}
[data-vibeui-block="progress-003"] [data-part="value"]{
position:relative;font-size:calc(var(--vibeui-progress-003-size) * 0.22);
font-weight:700;line-height:1;font-variant-numeric:tabular-nums;
}
[data-vibeui-block="progress-003"] [data-part="unit"]{
font-size:0.6875rem;font-weight:600;color:var(--vibeui-progress-003-muted);
letter-spacing:0.04em;text-transform:uppercase;
}
[data-vibeui-block="progress-003"] [data-part="label"]{
font-size:0.8125rem;font-weight:650;
}
[data-vibeui-block="progress-003"] [data-part="goalnote"]{
font-size:0.6875rem;color:var(--vibeui-progress-003-muted);
font-variant-numeric:tabular-nums;
}
@media (prefers-reduced-motion:reduce){
[data-vibeui-block="progress-003"] *{animation:none!important;transition:none!important}
}
`
/**
* Кольцевая шкала с делениями и меткой цели.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Progress003({
value = 72,
target = 85,
label = "План квартала",
unit = "выполнено",
className,
style,
...props
}: Progress003Props) {
const done = Math.min(100, Math.max(0, value))
const goal = Math.min(100, Math.max(0, target))
const palette = {
"--vibeui-progress-003-value": done,
"--vibeui-progress-003-target": goal,
...style,
} as CSSProperties
return (
<>
<style href="vibeui-progress-003" precedence="medium">
{STYLES}
</style>
<div
{...props}
data-vibeui-block="progress-003"
className={className}
style={palette}
>
<div
data-part="dial"
role="progressbar"
aria-label={label}
aria-valuemin={0}
aria-valuemax={100}
aria-valuenow={Math.round(done)}
aria-valuetext={`${Math.round(done)} процентов при цели ${Math.round(goal)}`}
>
<span data-part="arc" />
<span data-part="ticks" aria-hidden="true" />
<span data-part="goal" aria-hidden="true" />
<span data-part="value">{Math.round(done)}%</span>
</div>
<span data-part="unit">{unit}</span>
<span data-part="label">{label}</span>
<span data-part="goalnote">Цель {Math.round(goal)}%</span>
</div>
</>
)
}