@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
23 lines (22 loc) • 820 B
TypeScript
import { VariantProps } from 'class-variance-authority';
import { Progress as ProgressPrimitive } from 'radix-ui';
import { ComponentProps } from 'react';
declare const progressVariance: (props?: ({
color?: "destructive" | "primary" | "foreground" | null | undefined;
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
type ProgressProps = ComponentProps<typeof ProgressPrimitive.Root> & VariantProps<typeof progressVariance>;
/**
* Displays a progress bar indicating completion of a task.
*
* @example
* ```tsx
* <Progress value={50} />
* ```
*
* @example
* ```tsx
* <Progress value={75} color="destructive" />
* ```
*/
export declare const Progress: ({ className, value: valueProp, max: maxProp, color, ...props }: ProgressProps) => import("react").JSX.Element;
export {};