@itwin/quantity-formatting-react
Version:
React components and utilities for quantity formatting
21 lines • 716 B
TypeScript
import type { UnitsProvider } from "@itwin/core-quantity";
/** Properties of [[UnitDescr]] component.
* @internal
*/
export interface UnitDescrProps {
name: string;
parentUnitName?: string;
label: string;
index: number;
unitsProvider: UnitsProvider;
readonly?: boolean;
onUnitChange: (value: string, index: number) => void;
onLabelChange: (value: string, index: number) => void;
}
/** @internal */
export declare function getUnitName(fullUnitName: string): string;
/** Component use to display dropdown list of possible units.
* @internal
*/
export declare function UnitDescr(props: UnitDescrProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=UnitDescr.d.ts.map