Manual Integration
The Cosmos Components export a convenient typeCosmosElements which you can use to extend the
IntrinsicElements interface of your frontend framework. Following is an example of how I’ve
integrated them with Preact:
tsconfig.json).
TypeScript accepts a configuration option jsxImportSource which often needs to be defined for
a non-React project. Whatever value you set here is the module you need to augment in the snippet
above, plus the /jsx-runtime path.