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
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
technologyTerms | string[] | Yes | - | Technology term UIDs (e.g. "react", "next") |
subjectTerms | string[] | Yes | - | Subject term UIDs |
cslp | CSLPFieldMapping | No | - | 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
TechnologyTagswith icons from/technologies/(Tag design system) - Subject tags: Uses
TaxonomyTagswith 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
nullif both term arrays are empty - Uses
className="contents"on wrapper so layout flows with parent flex - Data typically from
extractContentTaxonomies(taxonomies)inlib/utils