Skip to content

Tag

Tags (chips) are labeled elements for categorization, filtering, or selection. They can be removable, interactive, or disabled.

Basic Usage

React
import { Tag } from "@paramanu/data-display-react"
export default function App() {
return <Tag>React</Tag>
}
<span class="pm-tag pm-tag--filled pm-tag--md pm-tag--primary">React</span>

Removable

React
import { Tag } from "@paramanu/data-display-react"
export default function App() {
return <Tag removable onRemove={() => console.log("removed")}>React</Tag>
}
<span class="pm-tag pm-tag--filled pm-tag--md pm-tag--primary pm-tag--removable">
React
<button type="button" class="pm-tag__remove" aria-label="Remove"></button>
</span>