UNPKG

@payfit/unity-components

Version:

93 lines (92 loc) 2.16 kB
import { VariantProps } from '@payfit/unity-themes'; import { ProgressBarProps as AriaProgressBarProps } from 'react-aria-components/ProgressBar'; declare const progressBar: import('tailwind-variants').TVReturnType<{ variant: { success: { meter: string; }; primary: { meter: string; }; }; size: { small: { base: string; meter: string; }; large: { base: string; meter: string; }; }; isFull: { true: {}; }; }, { base: string; meter: string; }, undefined, { variant: { success: { meter: string; }; primary: { meter: string; }; }; size: { small: { base: string; meter: string; }; large: { base: string; meter: string; }; }; isFull: { true: {}; }; }, { base: string; meter: string; }, import('tailwind-variants').TVReturnType<{ variant: { success: { meter: string; }; primary: { meter: string; }; }; size: { small: { base: string; meter: string; }; large: { base: string; meter: string; }; }; isFull: { true: {}; }; }, { base: string; meter: string; }, undefined, unknown, unknown, undefined>>; export interface ProgressBarProps extends AriaProgressBarProps { /** the range of the value*/ range?: [min: number, max: number]; /** the value of the progression */ value: number; /** the visual variant of the progress bar fill */ variant?: VariantProps<typeof progressBar>['variant']; /** the size of the progress bar */ size?: VariantProps<typeof progressBar>['size']; /** an aria-label for the accessibility */ 'aria-label': string; } declare const ProgressBar: import('react').ForwardRefExoticComponent<ProgressBarProps & import('react').RefAttributes<HTMLDivElement>>; export { ProgressBar };