UNPKG

react-antd-cssvars

Version:
12 lines (11 loc) 581 B
import React from "react"; import { TagProps } from "antd"; import { PresetColorType, PresetStatusColorType } from "antd/lib/_util/colors"; import { LiteralUnion } from "antd/lib/_util/type"; export declare const ExtendTagTypes: ["primary", "primary-bg", "secondary"]; export declare type IExtendTagType = typeof ExtendTagTypes[number]; export interface ITagProps extends Omit<TagProps, "color"> { color?: LiteralUnion<PresetColorType | PresetStatusColorType | IExtendTagType, string>; } declare const TagComponent: React.FC<ITagProps>; export default TagComponent;