Problem Statement
Component props documentation is currently generated via npm run build:props and accessible through a standalone /props?components=... endpoint. However, this doesn't integrate with the hierarchical API structure used for content navigation (/api/[version]/[section]/[page]).
Goal
Integrate component props data into the versioned, hierarchical API structure to enable consumers to fetch props alongside or separately from component documentation content.
Proposed Solution
Add a props endpoint that aligns with the existing API hierarchy:
GET /api/v6/components/alert/props → Returns props for the Alert component
Completion Criteria
Out of Scope
- Changes to the
build:props command or props generation logic
- Automatic props generation during build (optional enhancement for later)
Jira Issue: PF-2807
Problem Statement
Component props documentation is currently generated via
npm run build:propsand accessible through a standalone/props?components=...endpoint. However, this doesn't integrate with the hierarchical API structure used for content navigation (/api/[version]/[section]/[page]).Goal
Integrate component props data into the versioned, hierarchical API structure to enable consumers to fetch props alongside or separately from component documentation content.
Proposed Solution
Add a props endpoint that aligns with the existing API hierarchy:
GET /api/v6/components/alert/props→ Returns props for the Alert componentCompletion Criteria
API Route Created
/api/[version]/[section]/[page]/props.tsrouteprops.jsonalert,Alert,ALERTall work)Error Handling
props.jsonhasn't been generatedDocumentation
/api/openapi.json.tsif applicableTesting
build:propsworkflowBackwards Compatibility
/props?components=...endpoint continues to workOut of Scope
build:propscommand or props generation logicJira Issue: PF-2807