Docs
Tag

Tag

Used for marking and categorisation.

Tag

Usage

Example Code

1import { Tag } from "inc-design-system/tag";

Example Code

1<Tag>Tag</Tag>

Props

Tag

PropTypeDescriptionDefault
classNamestringAdditional CSS classes to apply to the tag container.-
variant"default" | "primary" | "secondary" | "transparentBackground"The variant of the tag. Can be one of 'default', 'primary', or 'secondary'."default"
closeablebooleanWhether the Tag can be closed. Default is false. If true, a close button will be displayed.false
onClose() => voidCallback when the Tag is closed.-
iconReactNodeIcon to display alongside the Tag text. Default is null.null
disabledbooleanWhether the Tag is disabled. Default is false.false
borderbooleanWhether the Tag has a border. Default is true.true