ProgressBar
Terminal-style progress bar with percentage.
ProgressBar
Design lines
62%
vue
1<Tabs defaultValue="tuix">2 <TabsList>3 <Tab value="tuix">TUIX</Tab>4 <Tab value="rubik">Rubik</Tab>5 </TabsList>6 <TabPanel value="tuix">7 <ProgressBar :value="62" show-label design="tuix" />8 </TabPanel>9 <TabPanel value="rubik">10 <ProgressBar :value="62" show-label design="rubik" />11 </TabPanel>12</Tabs>Demo
Valor (value)
Progreso numérico 0-100.
25%
50%
75%
100%
vue
1<ProgressBar value="25" />2<ProgressBar value="50" />3<ProgressBar value="75" />4<ProgressBar value="100" color="success" />Color (color)
Color semántico de la barra.
60%
60%
60%
60%
60%
60%
vue
1<ProgressBar value="60" color="primary" />2<ProgressBar value="60" color="success" />3<ProgressBar value="60" color="warning" />4<ProgressBar value="60" color="danger" />5<ProgressBar value="60" color="secondary" />6<ProgressBar value="60" color="tertiary" />Size (size)
Altura de la barra.
50%
50%
50%
vue
1<ProgressBar value="50" size="sm" />2<ProgressBar value="50" size="md" />3<ProgressBar value="50" size="lg" />Etiqueta (showLabel)
Muestra u oculta el porcentaje.
75%
vue
1<ProgressBar value="75" show-label />2<ProgressBar value="75" :show-label="false" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Progress (0-100) |
color | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark' | 'primary' | Semantic color |
showLabel | boolean | true | Show the % at the end |
size | 'sm' | 'md' | 'lg' | 'md' | Height of the bar |
design | 'tuix' | 'rubik' | — (inherits from data-design) | Design line (or inherit from data-design). |
CSS Custom Properties
| Token | Default | Description |
|---|---|---|
--font-mono | "JetBrains Mono", ui-monospace, monospace | Monospace font stack for code-like content (key labels, log lines, chips). |
--bg-alt | from theme (--ctp-latte-mantle / --ctp-mocha-mantle) | Alternate background (the next layer down from the base). |
--bg-elevated | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Background of floating surfaces (modals, dropdowns, popovers). |
--border | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Outline and divider color for surfaces. |
Ver Theming para la convención completa.