20 lines
1.1 KiB
TypeScript
20 lines
1.1 KiB
TypeScript
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
import * as React from 'react';
|
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
|
|
declare const createProgressScope: _radix_ui_react_context.CreateScope;
|
|
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
interface ProgressProps extends PrimitiveDivProps {
|
|
value?: number | null | undefined;
|
|
max?: number;
|
|
getValueLabel?(value: number, max: number): string;
|
|
}
|
|
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
interface ProgressIndicatorProps extends PrimitiveDivProps {
|
|
}
|
|
declare const ProgressIndicator: React.ForwardRefExoticComponent<ProgressIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
declare const Root: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
declare const Indicator: React.ForwardRefExoticComponent<ProgressIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
|
|
export { Indicator, Progress, ProgressIndicator, type ProgressIndicatorProps, type ProgressProps, Root, createProgressScope };
|