reablocks
Version:
Component library for React
23 lines (21 loc) • 503 B
TypeScript
import { FormatSizeTypes } from './utils';
import { FC } from 'react';
export interface DataSizeProps {
/**
* The size value to render.
*/
value: FormatSizeTypes;
/**
* If the value is undefined/null it will return this value.
*/
emptyValue?: string;
/**
* Customize scale for displaying units.
*/
scale?: string[];
/**
* The number of decimals to be set.
*/
decimals?: number;
}
export declare const DataSize: FC<DataSizeProps>;