Run Tag
Web (React)
A monospace run tag that fills with theme ink while a command runs, then settles to done or retry.
Show a command's progress inline: the tag fills with ink toward its expected duration while running, washes to the done colour on success, and shakes with a retry action on failure. A live elapsed timer and a screen-reader status line come built in.
pnpm build --filter docs, running
Installation
CLI
npx @modus-ui/cli add run-tagManual
- Copy the code from the component tab.
- Create a file at
components/ui/run-tag.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | string | "terminal" | - |
| name | string | "pnpm" | - |
| argument | string | "build --filter docs" | - |
| status | string | "running" | - |
| expectedMs | number | 2500 | - |
| size | number | 34 | - |
| radius | number | 6 | - |
| color | string | "hsl(var(--foreground))" | - |
| surfaceColor | string | "hsl(var(--muted))" | - |
| progressColor | string | "hsl(var(--primary))" | - |
| progressOpacity | number | 0.16 | - |
| doneColor | string | "hsl(var(--primary))" | - |
| errorColor | string | "hsl(var(--destructive))" | - |
| washOpacity | number | 0.14 | - |
| shake | number | 6 | - |
| showTimer | boolean | true | - |
| onRetry | any | - | - |
| style | any | - | - |
Comments