As web components, the Cosmos Components are directly usable in both HTML and JSX. However, For TypeScript projects, you will need to import the JSX bindings for your frontend framework of choice, or integrate them manually. Bindings currently exist for Preact and React.Documentation Index
Fetch the complete documentation index at: https://docs.kiruse.dev/llms.txt
Use this file to discover all available pages before exploring further.
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.