UNPKG

rsuite

Version:

A suite of react components

17 lines (16 loc) 630 B
import React from 'react'; import { WithAsProps, TypeAttributes, RsRefForwardingComponent } from '../@types/common'; export interface TagProps extends WithAsProps { /** Different sizes */ size?: 'lg' | 'md' | 'sm'; /** A tag can have different colors */ color?: TypeAttributes.Color; /** Whether to close */ closable?: boolean; /** The content of the component */ children?: React.ReactNode; /** Click the callback function for the Close button */ onClose?: (event: React.MouseEvent<HTMLElement>) => void; } declare const Tag: RsRefForwardingComponent<'div', TagProps>; export default Tag;