Appearance
Progress
Thanh progress xác định.
ts
import { Progress } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Progress } from "@minap/ui";
export function Example() {
return (
<>
<div className="flex w-full flex-col gap-3">
{(
[
["primary", 62],
["success", 80],
["warning", 45],
["destructive", 25],
["info", 55],
] as const
).map(([color, value]) => (
<div key={color} className="flex w-full flex-col gap-1">
<Progress value={value} color={color} aria-label={`${color} ${value} percent`} />
<p className="text-xs text-muted-foreground">
{color} — {value}%
</p>
</div>
))}
</div>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
value | number | — | 0–100 |
color | "primary" | "success" | "warning" | "destructive" | "info" | "primary" | Omit → primary; track giữ border |