Progress

PreviousNext

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Docs
animate-uiui

Preview

Loading preview…
registry/components/radix/progress/index.tsx
import * as React from 'react';

import {
  Progress as ProgressPrimitive,
  ProgressIndicator as ProgressIndicatorPrimitive,
  type ProgressProps as ProgressPrimitiveProps,
} from '@/components/animate-ui/primitives/radix/progress';
import { cn } from '@/lib/utils';

type ProgressProps = ProgressPrimitiveProps;

function Progress({ className, ...props }: ProgressProps) {
  return (
    <ProgressPrimitive
      className={cn(
        'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',
        className,
      )}
      {...props}
    >
      <ProgressIndicatorPrimitive className="bg-primary rounded-full h-full w-full flex-1" />
    </ProgressPrimitive>
  );
}

export { Progress, type ProgressProps };

Installation

npx shadcn@latest add @animate-ui/components-radix-progress

Usage

import { ComponentsRadixProgress } from "@/components/ui/components-radix-progress"
<ComponentsRadixProgress />