@base-ui/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.
14 lines • 493 B
TypeScript
import * as React from 'react';
export type MeterRootContext = {
formattedValue: string;
max: number;
min: number;
/**
* The value normalized to a `0`–`100` percentage of the range, clamped to those bounds.
*/
percentageValue: number;
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
value: number;
};
export declare const MeterRootContext: React.Context<MeterRootContext | undefined>;
export declare function useMeterRootContext(): MeterRootContext;