Skip to content
UI

Progress

A component that displays the progress status for a task.

<script setup lang="ts">
import { Progress } from '@destyler-ui/vue'
</script>

<template>
  <Progress.Root>
    <Progress.Label>Label</Progress.Label>
    <Progress.ValueText />
    <Progress.View state="loading" />
    <Progress.Track>
      <Progress.Range />
    </Progress.Track>
    <Progress.Circle>
      <Progress.CircleTrack />
      <Progress.CircleRange />
    </Progress.Circle>
  </Progress.Root>
</template>
import { Progress } from '@destyler-ui/react'

export function Basic() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
      <Progress.Circle>
        <Progress.CircleTrack />
        <Progress.CircleRange />
      </Progress.Circle>
    </Progress.Root>
  )
}
import { Progress } from '@destyler-ui/solid/progress'

export function Basic() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
    </Progress.Root>
  )
}
<script lang="ts">
  import { Progress } from '@destyler-ui/svelte'
</script>

<Progress.Root defaultValue={42}>
  <Progress.Label>Label</Progress.Label>
  <Progress.ValueText />
  <Progress.Track>
    <Progress.Range />
  </Progress.Track>
  <Progress.Circle>
    <Progress.CircleTrack />
    <Progress.CircleRange />
  </Progress.Circle>
</Progress.Root>
<script setup lang="ts">
import { Progress } from '@destyler-ui/vue'
</script>
<template>
<Progress.Root>
<Progress.Label />
<Progress.ValueText />
<Progress.Track>
<Progress.Range />
</Progress.Track>
<Progress.View />
</Progress.Root>
</template>
import { Progress } from '@destyler-ui/react'
export default function Basic() {
return (
<Progress.Root>
<Progress.Label />
<Progress.ValueText />
<Progress.Track>
<Progress.Range />
</Progress.Track>
<Progress.View />
</Progress.Root>
)
}
import { Progress } from '@destyler-ui/solid'
export default function Basic() {
return (
<Progress.Root>
<Progress.Label />
<Progress.ValueText />
<Progress.Track>
<Progress.Range />
</Progress.Track>
<Progress.View state="loading" />
</Progress.Root>
)
}
<script lang="ts">
import { Progress } from '@destyler-ui/svelte'
</script>
<Progress.Root defaultValue={42}>
<Progress.Label>Label</Progress.Label>
<Progress.ValueText />
<Progress.Track>
<Progress.Range />
</Progress.Track>
<Progress.Circle>
<Progress.CircleTrack />
<Progress.CircleRange />
</Progress.Circle>
</Progress.Root>
<script setup lang="ts">
import { Progress } from '@destyler-ui/vue'
</script>

<template>
  <Progress.Root>
    <Progress.Label>Label</Progress.Label>
    <Progress.ValueText />
    <Progress.View state="loading" />
    <Progress.Track>
      <Progress.Range />
    </Progress.Track>
    <Progress.Circle>
      <Progress.CircleTrack />
      <Progress.CircleRange />
    </Progress.Circle>
  </Progress.Root>
</template>
import { Progress } from '@destyler-ui/react'

export function Basic() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
      <Progress.Circle>
        <Progress.CircleTrack />
        <Progress.CircleRange />
      </Progress.Circle>
    </Progress.Root>
  )
}
import { Progress } from '@destyler-ui/solid/progress'

export function Basic() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
    </Progress.Root>
  )
}
<script lang="ts">
  import { Progress } from '@destyler-ui/svelte'
</script>

<Progress.Root defaultValue={42}>
  <Progress.Label>Label</Progress.Label>
  <Progress.ValueText />
  <Progress.Track>
    <Progress.Range />
  </Progress.Track>
  <Progress.Circle>
    <Progress.CircleTrack />
    <Progress.CircleRange />
  </Progress.Circle>
</Progress.Root>

Display a linear progress bar.

<script setup lang="ts">
import { Progress } from '@destyler-ui/vue'
</script>

<template>
  <Progress.Root :defaultValue="42">
    <Progress.Label>Label</Progress.Label>
    <Progress.ValueText />
    <Progress.Track>
      <Progress.Range />
    </Progress.Track>
  </Progress.Root>
</template>
import { Progress } from '@destyler-ui/react'

export function Linear() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
    </Progress.Root>
  )
}

export { Linear as linear }
import { Progress } from '@destyler-ui/solid'

export function Linear() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Track>
        <Progress.Range />
      </Progress.Track>
    </Progress.Root>
  )
}

export { Linear as linear }
<script lang="ts">
  import { Progress } from '@destyler-ui/svelte'
</script>

<Progress.Root defaultValue={42}>
  <Progress.Label>Label</Progress.Label>
  <Progress.ValueText />
  <Progress.Track>
    <Progress.Range />
  </Progress.Track>
</Progress.Root>

Display a circular progress indicator.

<script setup lang="ts">
import { Progress } from '@destyler-ui/vue'
</script>

<template>
  <Progress.Root :defaultValue="42">
    <Progress.Label>Label</Progress.Label>
    <Progress.ValueText />
    <Progress.Circle>
      <Progress.CircleTrack />
      <Progress.CircleRange />
    </Progress.Circle>
  </Progress.Root>
</template>
import { Progress } from '@destyler-ui/react'

export function Circular() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Circle>
        <Progress.CircleTrack />
        <Progress.CircleRange />
      </Progress.Circle>
    </Progress.Root>
  )
}

export { Circular as circular }
import { Progress } from '@destyler-ui/solid'

export function Circular() {
  return (
    <Progress.Root defaultValue={42}>
      <Progress.Label>Label</Progress.Label>
      <Progress.ValueText />
      <Progress.Circle>
        <Progress.CircleTrack />
        <Progress.CircleRange />
      </Progress.Circle>
    </Progress.Root>
  )
}

export { Circular as circular }
<script lang="ts">
  import { Progress } from '@destyler-ui/svelte'
</script>

<Progress.Root defaultValue={42}>
  <Progress.Label>Label</Progress.Label>
  <Progress.ValueText />
  <Progress.Circle>
    <Progress.CircleTrack />
    <Progress.CircleRange />
  </Progress.Circle>
</Progress.Root>

Root

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

defaultValuenull | number

The initial value of the tabs when it is first rendered. Use when you do not need to control the state of the tabs.

idstring

The unique identifier of the machine.

idsPartial<{ root: string; track: string; label: string; circle: string; }>

The ids of the elements in the progress bar. Useful for composition.

max100number

The maximum allowed value of the progress bar.

min0number

The minimum allowed value of the progress bar.

modelValuenull | number

Use this prop to control the value of the progress.

orientation"horizontal""horizontal" | "vertical"

The orientation of the element.

translationsprogress.IntlTranslations

The localized messages to use.

EmitEvent
update:modelValue[value: number | null]

The callback fired when the model value changes.

valueChange[details: ValueChangeDetails]

Callback fired when the value changes.

Circle

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

CircleRange

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

CircleTrack

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Context

No serializable props or emits are declared for this part.

Label

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Range

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

RootProvider

PropDefaultType
value*MachineApi<PropTypes>
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Track

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

ValueText

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

View

PropDefaultType
state*ProgressState
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Root

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

defaultValuenull | number

The initial value of the progress when it is first rendered. Use when you do not need to control the state of the progress.

idstring

The unique identifier of the machine.

idsPartial<{ root: string; track: string; label: string; circle: string; }>

The ids of the elements in the progress bar. Useful for composition.

max100number

The maximum allowed value of the progress bar.

min0number

The minimum allowed value of the progress bar.

onValueChange(details: progress.ValueChangeDetails) => void

Callback fired when the value changes.

orientation"horizontal""horizontal" | "vertical"

The orientation of the element.

translationsprogress.IntlTranslations

The localized messages to use.

value50null | number

The current value of the progress bar.

Circle

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

CircleRange

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

CircleTrack

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Context

PropDefaultType
children*(context: UseProgressContext) => ReactNode

Label

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Range

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

RootProvider

PropDefaultType
value*UseProgressReturn
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Track

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

ValueText

PropDefaultType
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

View

PropDefaultType
state*ProgressState
asChildfalse | true

Use the provided child element as the default rendered element, combining their props and behavior.

Root

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLDivElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

defaultValuenull | number

The initial value of the progress when it is first rendered. Use when you do not need to control the state of the progress.

idsPartial<{ root: string; track: string; label: string; circle: string; }>

The ids of the elements in the progress bar. Useful for composition.

max100number

The maximum allowed value of the progress bar.

min0number

The minimum allowed value of the progress bar.

onValueChange(details: ValueChangeDetails) => void

Callback fired when the value changes.

orientation"horizontal""horizontal" | "vertical"

The orientation of the element.

translationsprogress.IntlTranslations

The localized messages to use.

value50null | number

The current value of the progress bar.

Circle

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.SvgSVGAttributes<SVGSVGElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

CircleRange

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.CircleSVGAttributes<SVGCircleElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

CircleTrack

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.CircleSVGAttributes<SVGCircleElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

Context

PropDefaultType
children*(context: UseProgressContext) => Element

Label

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.LabelHTMLAttributes<HTMLLabelElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

Range

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLDivElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

RootProvider

PropDefaultType
value*UseProgressReturn
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLDivElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

Track

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLDivElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

ValueText

PropDefaultType
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLSpanElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

View

PropDefaultType
state*ProgressState
asChild(props: (userProps?: solid_js141.JSX.HTMLAttributes<HTMLSpanElement> | undefined) => JSX.HTMLAttributes<any>) => JSX.Element

Use the provided child element as the default rendered element, combining their props and behavior.

Root

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"div">]>
childrenSnippet<[]> | undefined
defaultValuenull | number
idstring
idsPartial<{ root: string; track: string; label: string; circle: string; }>

The ids of the elements in the progress bar. Useful for composition.

max100number

The maximum allowed value of the progress bar.

min0number

The minimum allowed value of the progress bar.

onValueChange(details: import("/home/runner/work/ui/ui/packages/svelte/dist/index").ProgressValueChangeDetails) => void

Callback fired when the value changes.

orientation"horizontal""horizontal" | "vertical"

The orientation of the element.

translationsIntlTranslations | undefined

The localized messages to use.

value50null | number

The current value of the progress bar.

Circle

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"svg">]>
childrenSnippet<[]> | undefined

CircleRange

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"circle">]>
childrenSnippet<[]> | undefined

CircleTrack

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"circle">]>
childrenSnippet<[]> | undefined

Context

PropDefaultType
apiSnippet<[UseProgressContext]>

Label

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"label">]>
childrenSnippet<[]> | undefined

Range

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"div">]>
childrenSnippet<[]> | undefined

RootProvider

PropDefaultType
value*UseProgressReturn

Track

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"div">]>
childrenSnippet<[]> | undefined

ValueText

PropDefaultType
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"span">]>
childrenSnippet<[]> | undefined

View

PropDefaultType
state*ProgressState
asChildimport("svelte").Snippet<[import("/home/runner/work/ui/ui/packages/svelte/dist/types").PropsFn<"span">]>
childrenSnippet<[]> | undefined