@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
33 lines (32 loc) • 907 B
TypeScript
import { Typography as AntdTypography } from 'antd';
import type { TooltipPropsWithTitle } from 'antd/es/tooltip';
import type { TextProps } from 'antd/es/typography/Text';
import React from 'react';
export declare const Typography: TypographyProps;
interface TimeProps extends TextProps {
/**
* @description Set display time
* @default '-'
*/
time: string;
/**
* @description Formatted display time
* @default 'YYYY-MM-DD HH:mm:ss'
*/
format?: string;
/**
* @description Display relative time
* @default 'true'
*/
relativeTime?: boolean;
/**
* @description Mouse above to show time
* @default '{title: "YYYY-MM-DD HH:mm:ss"}'
*/
tooltip?: TooltipPropsWithTitle;
}
declare const Time: React.FC<TimeProps>;
export type TypographyProps = typeof AntdTypography & {
Time: typeof Time;
};
export default Typography;