@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
21 lines (20 loc) • 836 B
TypeScript
import type { FieldProps, Validator, ValidatorWithCustomValidators } from '../../types';
import type { SegmentedFieldProps } from '../../../../components/input-masked/segmented-field/SegmentedField';
export type TimeValidator = ValidatorWithCustomValidators<string, {
timeValidator: Validator<string>;
}>;
export type TimeProps = Omit<FieldProps<string, undefined | ''>, 'width' | 'contentWidth'> & {
/**
* The size of the component.
*/
size?: SegmentedFieldProps<'hours' | 'minutes' | 'seconds'>['size'];
/**
* If set to `true`, a seconds input is shown in addition to hours and minutes.
*/
showSeconds?: boolean;
};
declare function Time(props?: TimeProps): import("react/jsx-runtime").JSX.Element;
declare namespace Time {
var _supportsEufemiaSpacingProps: boolean;
}
export default Time;