Skip to Content

Tag

NeutralPrimaryInfoRoundClosable
import { Tag } from '@gg-software/ui'; <Tag tone="primary">design-system</Tag> <Tag tone="success" round>Round</Tag> <Tag closable onClose={() => removeTag(id)}>Removable</Tag> <Tag icon={<StarIcon />}>With icon</Tag>

Props

PropTypeDefaultDescription
children*ReactNodecontent rendered inside the component
tone"info" | "success" | "warning" | "neutral" | "primary" | "danger"neutral
iconReactNode
closablebooleanfalse
roundbooleanfalse
onClose(() => void)
classNamestring

* required · generated from packages/ui/src/display/Tag/Tag.tsx