@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.
9 lines • 752 B
text/typescript
type NumberFormatOptionsWithRounding = Intl.NumberFormatOptions & {
roundingIncrement?: number | undefined;
roundingMode?: string | undefined;
roundingPriority?: string | undefined;
};
export declare function hasNumberFormatRoundingOptions(format?: NumberFormatOptionsWithRounding): format is NumberFormatOptionsWithRounding;
export declare function removeFloatingPointErrors(value: number, format?: NumberFormatOptionsWithRounding): number;
export declare function toValidatedNumber(value: number | null, step: number | undefined, minWithDefault: number, maxWithDefault: number, minWithZeroDefault: number, format: NumberFormatOptionsWithRounding | undefined, snapOnStep: boolean, small: boolean, shouldClamp: boolean): number | null;
export {};