UNPKG

ontime-components

Version:
26 lines (25 loc) 683 B
import { PureComponent } from 'react'; import { IProps } from '../../libs/interfaces'; import { TFuncClick } from '../../libs/types'; declare type TMapValue = string | Function; interface ITagProps extends IProps { value: any; mapValue?: TMapValue; isClosable?: boolean; onClose?: Function; onClick?: Function; onDoubleClick?: Function; } interface ITagDefProps { isClosable: boolean; } declare class Tag extends PureComponent<ITagProps & ITagDefProps> { static defaultProps: { isClosable: boolean; }; onClose: TFuncClick; onClick: TFuncClick; onDoubleClick: TFuncClick; render(): JSX.Element; } export { Tag, ITagProps };