progress
shadcn-vue/progressFreeComponent
shadcn-vue publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn-vue on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://shadcn-vue.com/r/styles/new-york/progress.jsonSource
1<script setup lang="ts">2import type { ProgressRootProps } from "reka-ui"3import type { HTMLAttributes } from "vue"4import { reactiveOmit } from "@vueuse/core"5import {6 ProgressIndicator,7 ProgressRoot,8} from "reka-ui"9import { cn } from "@/lib/utils"1011const props = withDefaults(12 defineProps<ProgressRootProps & { class?: HTMLAttributes["class"] }>(),13 {14 modelValue: 0,15 },16)1718const delegatedProps = reactiveOmit(props, "class")19</script>2021<template>22 <ProgressRoot23 v-bind="delegatedProps"24 :class="25 cn(26 'relative h-2 w-full overflow-hidden rounded-full bg-primary/20',27 props.class,28 )29 "30 >31 <ProgressIndicator32 class="h-full w-full flex-1 bg-primary transition-all"33 :style="`transform: translateX(-${100 - (props.modelValue ?? 0)}%);`"34 />35 </ProgressRoot>36</template>
What it pulls in
npm packages
Files it writes
More from shadcn-vue
All 66 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn-vue | Components | Free | 2 deps · 5 files | |
| alertalert | shadcn-vue | Components | Free | no deps · 4 files | |
| alert-dialogalert-dialog | shadcn-vue | Components | Free | 2 deps · 10 files | |
| aspect-ratioaspect-ratio | shadcn-vue | Components | Free | 1 dep · 2 files | |
| attachmentattachment | shadcn-vue | Components | Free | 1 dep · 10 files | |
| avataravatar | shadcn-vue | Components | Free | 2 deps · 4 files | |
| badgebadge | shadcn-vue | Components | Free | 2 deps · 2 files | |
| breadcrumbbreadcrumb | shadcn-vue | Components | Free | 1 dep · 8 files |
