#093
Determinate
Four determinate progress bars at 25, 50, 75 and 100 percent, each with a percent label.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Determinate" pattern (@codeatlasdev/ui demo #093, feedback/progress) in my app.
Call get_demo({ ids: ["#093"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Showing known completion, such as quota used or onboarding steps done.
Keep these library parts, with the props and tokens the demo uses:
- Progress from "@codeatlasdev/ui"
Behaviour to keep:
- `{#each [25, 50, 75, 100] as v}` renders one row per value
- `<Progress value={v} label="{v} percent" />` gives each bar an accessible label
- Text `{v}%` shown beside each bar
- Column has `max-width: 480px`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Progress
@codeatlasdev/ui
How it is built
- `{#each [25, 50, 75, 100] as v}` renders one row per value
- `<Progress value={v} label="{v} percent" />` gives each bar an accessible label
- Text `{v}%` shown beside each bar
- Column has `max-width: 480px`
Related
Loading source.