@llumi/ui
v2.0.2
Published
Web components for code collaboration and diagrams: code review, BPMN, Mermaid, code blocks and diffs. Built with Lit; they work in any page, with or without a framework.
Readme
@llumi/ui
Web components for code collaboration and diagrams: code review, BPMN, Mermaid, code blocks and diffs. Built with Lit; they work in any page, with or without a framework.
Import via CDN (esm.sh)
Each component ships as an ES module. esm.sh resolves its peer dependencies
(lit, pele, …) for you at request time. Load the base stylesheet once.
<link rel="stylesheet" href="https://esm.sh/@llumi/ui@2/base.css" />
<script type="module">
import "https://esm.sh/@llumi/ui@2/code.mjs";
</script>
<llumi-code language="json">{ "hello": "llumi" }</llumi-code>@2 resolves to the latest release in that major.
Import with a bundler
npm install @llumi/ui@2 litAlso install the peer dependencies of the components you use (<llumi-mermaid>
needs pele and d3-*, <llumi-bpmn> needs bpmn-js, …): the complete list
is the peerDependencies block of the published package.json.
import "@llumi/ui/base.css";
import "@llumi/ui/review.mjs";Components
| Component | Import path | Docs |
| --- | --- | --- |
| classless theme | /base.css | base.md |
| <llumi-review> | /review.mjs | review.md |
| <llumi-bpmn> | /bpmn.mjs | bpmn.md |
| <llumi-mermaid> | /mermaid.mjs | mermaid.md |
| <llumi-code> | /code.mjs | code.md |
| <llumi-code-diff> | /code-diff.mjs | code-diff.md |
| <llumi-graph> | /graph.mjs | graph.md |
| <llumi-copy-button> | /copy-button.mjs | copy-button.md |
| <llumi-download-button> | /download-button.mjs | download-button.md |
React
React projects install the components (element source plus a typed React wrapper) through the llumi shadcn registry rather than this package; see the llumi Storybook's introduction page for the setup.
License
Free to use and embed, including commercially; no modification, redistribution, or resale. See LICENSE. Bundled third-party components and their notices are listed in NOTICE.
