Skip to main content
Our new developer certification is live!

Tag

Design system utility for taxonomy/filter tag styling. Exports tagVariants for consistent pill-style tags across content taxonomies, list filters, and search chips.

Exported Utilities

tagVariants

Function to generate tag class names without rendering:

import { tagVariants } from '@/components/atoms/Tag';

// Interactive (clickable) tag
const linkClassName = tagVariants({ variant: 'taxonomyTag', interactive: true });

// Non-interactive (display only) tag
const spanClassName = tagVariants({ variant: 'taxonomyTag', interactive: false });

// With additional classes
const className = tagVariants({ variant: 'taxonomyTag', className: 'no-underline' });

Variants

VariantDescription
'taxonomyTag'Pill-style outline tag with light border, subtle text, hover states

Parameters

ParamTypeDefaultDescription
variantTagVariant'taxonomyTag'Tag style variant
interactivebooleantrueAdds cursor-pointer when true, cursor-default when false
classNamestring-Additional CSS classes

Usage

Used by:

  • ListFilters – filter chips in List organism
  • ContentTaxonomies – subject/technology tags on content pages
  • TaxonomyTags – via tagClassName prop
  • TechnologyTags – technology term pills with icons

Notes

  • Base style: rounded border, light text, transparent background, hover darkening
  • Includes inline-flex items-center gap-2 for icon + label layout
  • Use with Link, a, or span depending on interactivity