UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

21 lines (20 loc) 779 B
import * as React from 'react'; import CheckableTag from './CheckableTag'; import { PresetColorType, PresetStatusColorType } from '../_util/colors'; import { LiteralUnion } from '../_util/type'; export { CheckableTagProps } from './CheckableTag'; export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> { prefixCls?: string; className?: string; color?: LiteralUnion<PresetColorType | PresetStatusColorType, string>; closable?: boolean; visible?: boolean; onClose?: Function; style?: React.CSSProperties; icon?: React.ReactNode; } export interface TagType extends React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>> { CheckableTag: typeof CheckableTag; } declare const Tag: TagType; export default Tag;