@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
25 lines (24 loc) • 742 B
TypeScript
import * as React from 'react';
declare function useProgressIndicator(parameters: useProgressIndicator.Parameters): useProgressIndicator.ReturnValue;
declare namespace useProgressIndicator {
interface Parameters {
/**
* The maximum value
* @default 100
*/
max?: number;
/**
* The minimum value
* @default 0
*/
min?: number;
/**
* The current value. The component is indeterminate when value is `null`.
*/
value: number | null;
}
interface ReturnValue {
getRootProps: (externalProps?: React.ComponentPropsWithRef<'span'>) => React.ComponentPropsWithRef<'span'>;
}
}
export { useProgressIndicator };