@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.
9 lines (8 loc) • 433 B
TypeScript
export declare function removeFloatingPointErrors(value: number, format?: Intl.NumberFormatOptions): number;
export declare function toValidatedNumber(value: number | null, { step, minWithDefault, maxWithDefault, minWithZeroDefault, format, }: {
step: number | undefined;
minWithDefault: number;
maxWithDefault: number;
minWithZeroDefault: number;
format: Intl.NumberFormatOptions | undefined;
}): number | null;