Feedback

Progress

Shows how far along a task is.

Installation

npx sinaui add progress

Examples

Basic

Transcription
<script lang="ts">
	import Progress from '#lib/ui/Progress.svelte';
</script>

<Progress label="Transcription" value={42} />

Custom value text

format sets what is shown and what screen readers hear.

Folios copied
<script lang="ts">
	import Button from '#lib/ui/Button.svelte';
	import Progress from '#lib/ui/Progress.svelte';

	let folios = $state(12);
</script>

<Progress
	label="Folios copied"
	value={folios}
	max={40}
	format={(v, max) => `${v} of ${max} folios`}
/>
<Button size="sm" variant="secondary" onclick={() => (folios = Math.min(40, folios + 7))}>
	Copy seven more
</Button>

Indeterminate

Searching the Córdoba catalog
<script lang="ts">
	import Progress from '#lib/ui/Progress.svelte';
</script>

<!-- No value: the amount of work is unknown, so it sweeps instead of filling. -->
<Progress label="Searching the Córdoba catalog" />

As a ring

shape=circle: the value sits in the middle and the label under it.

Pages copied
<script lang="ts">
	import Progress from '#lib/ui/Progress.svelte';
</script>

<Progress shape="circle" label="Pages copied" value={164} max={214} />

Ring, indeterminate

With no value, an arc turns.

Binding
<script lang="ts">
	import Progress from '#lib/ui/Progress.svelte';
</script>

<!-- No value: an arc turns until the work is done. -->
<Progress shape="circle" label="Binding" size={48} showValue={false} />

Props

PropTypeDefault
labelstring (required)
valuenumber: unset = indeterminate
maxnumber100
format(value, max) => stringpercent
showValuebooleantrue
shape'bar' | 'circle''bar'
sizenumber, the ring's diameter in px72

Accessibility

  • role="progressbar" labeled by its label, with aria-valuenow and a formatted aria-valuetext.
  • Numbers go through Intl.NumberFormat.
  • Fills with transform only; the indeterminate sweep becomes a gentle pulse with reduced motion.
Introduction
Theming
Changelog
Button
Action button
Confirm button
Copy button
Hold to confirm
Split button
Calendar
Checkbox
Color picker
Combobox
Date picker
Date range picker
File drop
Form
Input
Mention input
Multi select
Number field
OTP input
Password input
Phone input
Radio cards
Radio group
Rich text editor
Search field
Segmented control
Select
Signature pad
Slider
Switch
Tag input
Upload
Wheel picker
Textarea
Time field
Toggle group
Toolbar
Alert dialog
Command palette
Context menu
Dialog
Drawer
Dropdown
Hover card
Popover
Tooltip
Announcement bar
Alert
Empty state
Meter
Progress
Rolling number
Skeleton
Spinner
Toast
Avatar
Avatar group
Badge
Card
Carousel
Chart
Chat
Code block
Data table
Folder
Kbd
Mind map
Resizable panels
Scroll area
Separator
Sortable
Table
Tag group
Virtual list
Audio player
Image
Image compare
Video
Visualizer
Breadcrumb
File tree
Menubar
Navigation menu
Pagination
Sidebar layout
Stepper
Tabs
Alarm clock
Clock
Dynamic island
Fluid orb
Hourglass
Stopwatch
Timer
AI chat
AI media
Auth
Board
Booking
Dashboard
File explorer
Messaging
Notifications
Settings
Team
Overview
Pricing
Agent chat
Calendar
Voice agent
Mail inbox
CMS
Blog
Marketing site
E-commerce
AI agents
SaaS landing page
SaaS app
Accordion
Dark theme
Light theme