Progress
Bar that shows how much of a task is done.
Uploading · 60%
Import
Section titled “Import”import { Progress } from "@pelagornis/page/components";Example
Section titled “Example”The preview above renders this file. Copy it into src/components/ to start from it.
import { Progress, Stack, Text } from "@pelagornis/page/components";
export default function ProgressDemo() { return ( <Stack gap="sizeMedium" className="w-full max-w-sm"> <Stack gap="sizeXXSmall"> <Text variant="captionMd">Uploading · 60%</Text> <Progress value={60} max={100} aria-label="Upload" /> </Stack> <Progress value={30} size="lg" aria-label="Large" /> </Stack> );}Use in MDX
Section titled “Use in MDX”Progress can be written straight in an .mdx page. Import it below the frontmatter. It renders on the server, so no client directive is needed.
---title: Example---
import { Progress } from "@pelagornis/page/components";
<Progress value={60} aria-label="Upload" />Use in Markdoc
Section titled “Use in Markdoc”pageMarkdoc() registers a progress tag for this component. Add the preset once in markdoc.config.mjs (see Use in Markdoc), then write the tag in any .mdoc page.
{% progress value=60 ariaLabel="Upload" /%}Attributes use the same names and values as the React props.
Variants
Section titled “Variants”Values the component accepts for each variant prop.
| Prop | Values |
|---|---|
size | sm lg |
Anatomy
Section titled “Anatomy”Parts of the component and the data-refineui role each one renders.
| Part | Role |
|---|---|
root | progress |
Reference
Section titled “Reference”- RefineUI · Progress for design guidance and token detail.
- Use in MDX and Use in Markdoc for the general rules.