🍱 Manifold UI
npm i @manifoldco/ui
Manifold UI can be used in any frameworkless project (“vanilla” JS), or any modern framework like React, Vue, or Angular.
|Vanilla JS (no framework)||✅|
In any setup, you can use our CDN for UI:
<!-- latest (beware of breaking changes!) --><!-- specific version -->
HTML (ES Modules)
HTML (No ESM Support)
import React from 'react';import ReactDOM from 'react-dom';import '@manifoldco/ui/dist/manifold/manifold.css';import/* webpackChunkName: "manifold-ui" */ '@manifoldco/ui/dist/loader';const App = <manifold />;ReactDOM;
TypeScript + JSX setup
When using UI with TypeScript, you’ll likely see an error like this:
Property 'manifold-connection' does not exist on type 'JSX.IntrinsicElements'
To solve that, create a
custom-elements.d.ts file somewhere inside your project (must be inside
the include option in
This will expose the types from Stencil to JSX, and you’ll be able to get typechecking as you write.
Ember, Angular, Vue, and others
Initializing Manifold UI works the same as any other Stencil project. For more advanced instructions on integrating with your specific stack, please refer to Stencil’s docs on integration.