Skip to content

TypeScript and JSX

Types ship with the package, for every entry point and every module resolution mode, including NodeNext.

To type <mulling-status> in JSX, opt in once anywhere in your project (needs @types/react):

import type {} from 'mulling/jsx';

Then this type-checks, with built-in loader names and states autocompleting:

<mulling-status type="coil" label="Thinking" />

Any other loader name is accepted, so custom loaders work. Unknown states are flagged.