Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
import { component$, useSignal, useVisibleTask$ } from '@builder.io/qwik';
import { Progress } from '~/components/ui';
export default component$(() => {
const progress = useSignal(20);
useVisibleTask$(() => {
setTimeout(() => {
progress.value = 50;
}, 500);
});
return <Progress bind:value={progress} />;
});