reablocks
Version:
Component library for React
19 lines (17 loc) • 463 B
TypeScript
import { DurationFormatTypes } from './utils';
import { FC } from 'react';
export interface DurationProps {
/**
* Size to pass to the formatter.
*/
value: DurationFormatTypes;
/**
* If the value is undefined/null it will return this value.
*/
emptyValue?: string;
/**
* If the value is 0 it will return this value. Default to '0 ms'
*/
zeroValue?: string;
}
export declare const Duration: FC<DurationProps>;