Tag

Tag for categorizing or markup.

Usage

import { Tag, TagGroup } from 'rsuite';

Examples

Default

Colorful Tags

Dynamically tagging

Props

<Tag>

Property Type (Default) Description
children * React.Node The content of the component.
classPrefix string ('tag') The prefix of the component CSS class
closable boolean
componentClass React.ElementType ('div') You can use a custom element type for this component
onClose (event: SyntheticEvent<any>) => void Click the callback function for the Close button