UNPKG

@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.

28 lines 694 B
import * as React from 'react'; import type { ProgressRoot, ProgressStatus } from "./ProgressRoot.js"; export type ProgressRootContext = { /** * Formatted value of the component. */ formattedValue: string; /** * The maximum value. */ max: number; /** * The minimum value. */ min: number; /** * Value of the component. */ value: number | null; setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>; state: ProgressRoot.State; status: ProgressStatus; }; /** * @internal */ export declare const ProgressRootContext: React.Context<ProgressRootContext | undefined>; export declare function useProgressRootContext(): ProgressRootContext;