UNPKG

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

22 lines (21 loc) 485 B
import { Unit } from '../types'; declare enum WeightUnit { Gram = "g", Kilogram = "kg", Pound = "lb", Ounce = "oz" } /** * export interface Unit<T> { * type: T; * displayString: string; * step: number; * secondaryDisplayStrings?: string[]; * minValue: number; * isDefault: boolean; * placeholder?: string; * } */ export declare const WeightUnits: Unit<WeightUnit>[]; export declare const Weight: Record<WeightUnit, Unit<WeightUnit>>; export {};