Something went wrong. Try again.
source code of sayemon10.com sayemon10.com
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031<script lang="ts"> import { Progress as ProgressPrimitive } from 'bits-ui'; import { cn, type WithoutChildrenOrChild } from '#lib/utils.js';
let { ref = $bindable(null), class: className, max = 100, value, ...restProps }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props();</script>
<ProgressPrimitive.Root bind:ref data-slot="progress" class={cn( 'relative flex h-3 w-full items-center overflow-x-hidden rounded-full bg-muted', className )} {value} {max} {...restProps}> <div data-slot="progress-indicator" class="size-full flex-1 bg-primary transition-all" style="transform: translateX(-{100 - (100 * (value ?? 0)) / (max ?? 1)}%)" ></div></ProgressPrimitive.Root>