New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@manifoldco/ui

Package Overview
Dependencies
Maintainers
19
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldco/ui

Manifold UI

  • 0.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-95.96%
Maintainers
19
Weekly downloads
 
Created
Source

version (scoped) Stencil version codecov

🍱 Manifold UI

Manifold’s reusable web components, built with Stencil.

Installation

npm i @manifoldco/ui

Usage

FrameworkSupported?
Vanilla JS (no framework)
Angular
React
Vue
Ember
HTML (ES Modules)
<manifold-marketplace />

<script type="module">
  import { defineCustomElements } from 'https://unpkg.com/@manifoldco/ui/dist/esm/es2017/manifold.define.js';
  defineCustomElements(window);
</script>
HTML (No ESM Support)
<manifold-marketplace />
<script src="https://unpkg.com/@manifoldco/ui/dist/manifold.js"></script>
React
import React from 'react';
import ReactDOM from 'react-dom';

import { defineCustomElements } from '@manifoldco/ui/dist/loader';

const App = () => <manifold-marketplace />;

ReactDOM.render(<App />, document.getElementById('root'));
defineCustomElements(window);
Ember, Angular, Vue, and others

Initializing Manifold UI works the exact same as any other Stencil project. For more advanced instructions on integrating with your specific stack, please refer to Stencil’s docs on integration.

TypeScript + JSX setup

When using inside TypeScript, you’ll likely see this error ( manifold-connection could be any custom element):

Property 'manifold-connection' does not exist on type 'JSX.IntrinsicElements'

To solve that, add the following to tsconfig.json:

"compilerOptions": {
  "typeRoots": ["./node_modules/@types", "./node_modules/@manifoldco"],
  "types": ["ui"]
}

Next, create a custom-elements.d.ts file somewhere inside your project (must be inside the include option in tsconfig.json):

declare module JSX {
  interface IntrinsicElements extends StencilIntrinsicElements {}
}

This will do more than fix the error—now you’ll be able to typecheck the web components as you write! 🎉

FAQs

Package last updated on 19 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc