Skip to main content
Our new developer certification is live!

ContentTaxonomies

Renders technology terms (with icons) and subject terms for content pages. Shared by Blog, Guide, LiveStream, and Kickstart. Single wrapper with CSLP for visual editing in CMS.

Props

PropTypeRequiredDefaultDescription
technologyTermsstring[]Yes-Technology term UIDs (e.g. "react", "next")
subjectTermsstring[]Yes-Subject term UIDs
cslpCSLPFieldMappingNo-CSLP mapping for taxonomies field

Usage

import ContentTaxonomies from '@/components/molecules/ContentTaxonomies';
import { extractContentTaxonomies } from '@/lib/utils';

const { technologyTerms, subjectTerms } = extractContentTaxonomies(entry.taxonomies);

<ContentTaxonomies
  technologyTerms={technologyTerms}
  subjectTerms={subjectTerms}
  cslp={entry.$?.taxonomies}
/>

Features

  • Technology with icons: Uses TechnologyTags with icons from /technologies/ (Tag design system)
  • Subject tags: Uses TaxonomyTags with Tag design system for subject taxonomy terms
  • Separator: Bullet separator between technology and subjects
  • Single CSLP wrapper: One editable region for taxonomies in CMS
  • Interactive links: Both link to search (technology and subjects filters)

Notes

  • Returns null if both term arrays are empty
  • Uses className="contents" on wrapper so layout flows with parent flex
  • Data typically from extractContentTaxonomies(taxonomies) in lib/utils