UNPKG

700 BTypeScriptView Raw
1import * as React from 'react';
2import { TagPropsType } from './PropsType';
3export interface TagProps extends TagPropsType {
4 prefixCls?: string;
5 className?: string;
6 style?: React.CSSProperties;
7}
8export default class Tag extends React.Component<TagProps, any> {
9 static defaultProps: {
10 prefixCls: string;
11 disabled: boolean;
12 selected: boolean;
13 closable: boolean;
14 small: boolean;
15 onChange(): void;
16 onClose(): void;
17 afterClose(): void;
18 };
19 constructor(props: TagProps);
20 componentWillReceiveProps(nextProps: TagProps): void;
21 onClick: () => void;
22 onTagClose: () => void;
23 render(): JSX.Element | null;
24}