On this page

Progress

Install, props and the parts Progress is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/progress.json

Use

<script setup lang="ts">
import { Progress } from '@/components/ui/progress'
</script>

<template>
  <Progress :model-value="64" aria-label="Import progress" />
</template>

Props

Prop Values Notes
modelValue number, null Percent done, 0 to 100 (default 0)
max number Default 100
getValueLabel function Text read for the value, such as “640 of 1,000”
aria-label, aria-labelledby string Required: the bar’s name

Built on

Wraps the reka-ui Progress with the shadcn-vue Progress API. reka-ui gives role="progressbar" and aria-valuenow, aria-valuemin, aria-valuemax. Beehexa adds the styles.