Installation
import { CategoryTag } from "@octopusdeploy/design-system-components"
Properties
Using the CategoryTag component
A CategoryTag requires a label and color to be specified.
<CategoryTag label="My Category" color="#1A77CA" />
No prefix is supported for the CategoryTag. It is always displayed with a tag icon.
Dismissible tags
CategoryTags can be made dismissible by providing the onDismiss callback. This will show a dismiss button on the tag, executing this callback when clicked.
<CategoryTag label="My Category" color="#1A77CA" onDismiss={() => handleDismiss()} />