Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { ProgressRing } from '@dryui/ui';
</script>

<ProgressRing>Content</ProgressRing>

Import options

Root package

ts
import { ProgressRing } from '@dryui/ui'

Per-component subpath

ts
import { ProgressRing } from '@dryui/ui/progress-ring'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Default

svelte
<ProgressRing value={75} />

Colors

svelte
<ProgressRing value={75} color="primary" />
<ProgressRing value={75} color="green" />
<ProgressRing value={75} color="red" />
<ProgressRing value={75} color="yellow" />
<ProgressRing value={75} color="gray" />

Sizes

svelte
<ProgressRing value={60} size={24} />
<ProgressRing value={60} size={40} />
<ProgressRing value={60} size={64} />

Indeterminate

svelte
<ProgressRing indeterminate />

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Prop Type Default Required Bindable
value
number | undefined
max
number
100
size
number
40
strokeWidth
number
4
color
primarygraygreenredyellow
'primary'
indeterminate
boolean
false

Forwards <div> attributes via rest props. Common examples: id, style, role.