UNPKG

rsuite

Version:

A suite of react components

27 lines (26 loc) 1.02 kB
import React from 'react'; import { BoxProps } from '../internals/Box'; import type { Color } from '../internals/types'; import type { CommonLocale } from '../locales'; export interface TagProps extends BoxProps { /** Different sizes */ size?: 'lg' | 'md' | 'sm'; /** A tag can have different colors */ color?: Color | React.CSSProperties['color']; /** Whether to close */ closable?: boolean; /** The content of the component */ children?: React.ReactNode; /** Custom locale */ locale?: CommonLocale; /** Click the callback function for the Close button */ onClose?: (event: React.MouseEvent<HTMLElement>) => void; } /** * The `Tag` component is used to label and categorize. * It can be used to mark the status of an object or classify it into different categories. * * @see https://rsuitejs.com/components/tag */ declare const Tag: import("../internals/types").InternalRefForwardingComponent<"div", TagProps, never> & Record<string, never>; export default Tag;