ComponentCatalog
System for letting an LLM render custom React components by emitting fenced code blocks with JSON specs. The catalog ships a remark plugin, a <pre> override, and a system-prompt generator — all wired through <Chat components={catalog} />.
Imports
import {
componentCatalog,
ComponentRenderer,
ComponentError,
createComponentPre,
createChartComponentDef,
validateSpec,
generatePrompt,
type ComponentCatalog,
type ComponentDefinition,
type Compon
[Description truncada. Veja o README completo no GitHub.]