Progress
Communicates task completion as a determinate progress value.
Imports
Use the same component slug for React, Vue, and style token lookup. Do not import components from package roots.
import { Progress } from "@line/abc-def-react/progress";<script setup lang="ts">
import { Progress } from "@line/abc-def-vue/progress";
</script>Shadcn references
Compare the corresponding shadcn React and Vue documentation for the same component slug.
Basic usage
import { Progress } from "@line/abc-def-react/progress";
export function Example() {
return <Progress value={68} aria-label="Build progress" />;
}<script setup lang="ts">
import { Progress } from "@line/abc-def-vue/progress";
</script>
<template>
<Progress :model-value="68" aria-label="Build progress" />
</template>Component tokens
| Component Token | Semantic Token | Default Primitive Token |
|---|---|---|
--progress-bg | --muted | --color-zinc-100 |
--progress-indicator-bg | --primary | --color-zinc-900 |
Composition exports
ProgressUsage notes
- Use an accurate value when progress is determinate.
- Use a spinner for unknown duration.
- Related component tokens use the `progress` token group in `@line/abc-def-styles/css`.