react-antd-cssvars
Version:
A minimal cssvars antd module
12 lines (11 loc) • 595 B
TypeScript
import React from "react";
import { TimelineItemProps } from "antd";
import { PresetColorType } from "antd/lib/_util/colors";
import { LiteralUnion } from "antd/lib/_util/type";
export declare const ExtendTagTypes: ["primary", "secondary", "success", "error", "warning", "menu"];
export declare type IExtendTagType = typeof ExtendTagTypes[number];
export interface ITagProps extends Omit<TimelineItemProps, "color"> {
color?: LiteralUnion<PresetColorType | IExtendTagType, string>;
}
declare const TimelineItemComponent: React.FC<ITagProps>;
export default TimelineItemComponent;