@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
14 lines (13 loc) • 776 B
TypeScript
export { UnitFormatter } from './UnitFormatter.container';
export { SimpleUnitFormatter } from './SimpleUnitFormatter.container';
export declare const unitFormatterUtils: {
decimalToFraction: (decimal: number) => string;
decimalToMixedNumber: (decimal: number) => string;
fractionToDecimal: (fraction: string) => number;
isBaseTwoFraction: (value: string) => boolean;
isNumber: (value: string) => boolean;
isFraction: (changedValue: string) => boolean;
isMixedNumberWithBaseTwoFraction: (value: string) => boolean;
stringToUnitValue: (unitValue: string) => false | import("./types").UnitFormatterValue;
};
export type { SimpleUnitFormatterProps, SimpleUnitFormatterRef, UnitType, Unit, UnitFormatterValue, UnitFormatterProps, } from './types';