Skip to content

Ringbar

Progressbar but circular

Usage

Simple Usage

preview
vue
<template>
  <p-ringbar value="15" />
  <p-ringbar value="25" />
  <p-ringbar value="50" />
  <p-ringbar value="75" />
  <p-ringbar value="100" />
</template>

With Input Range

preview
vue
<template>
  <p-input-range v-model="value" />
  <p-ringbar :value="value" />
</template>

<script lang="ts" setup>
const value = ref(50)
</script>

Sizing

preview
vue
<template>
  <p-ringbar value="75" size="xs" />
  <p-ringbar value="75" size="sm" />
  <p-ringbar value="75" size="md" />
  <p-ringbar value="75" size="lg" />
</template>

Indeterminate Mode

preview
vue
<template>
  <p-ringbar indeterminate />
</template>

API

Props

PropsTypeDefaultDescription
sizeStringmdRing size, valid value: xs, sm, md, lg
minNumber0Lowest progress value
maxNumber100Highest progress value
valueNumber-Progress value
indeterminateBooleanfalseEnable indterminate mode

Slots

NameDescription
There no slots here

Events

NameArgumentsDescription
There no props here

See Also

Released under the MIT License.