@just-dom/lucide
v1.1.0
Published
Lucide icons plugin for just-dom
Readme
@just-dom/lucide
Lucide icons as a just-dom plugin: typed lucide helper on your configured DOM object.
- Documentation: Lucide plugin
- npm:
@just-dom/lucide - Peer dependency:
just-dom
Install
npm install @just-dom/lucide just-domExample (inline withPlugins)
import DOM, { withPlugins } from "just-dom";
import { createLucidePlugin } from "@just-dom/lucide";
import { House, Search } from "lucide";
const jd = withPlugins(DOM, [
createLucidePlugin({ icons: { House, Search } }),
]);
jd.lucide("House", { size: 24 });Recommended: jd.config.ts
Register Lucide next to other plugins in one module and import jd everywhere else:
- App setup (jd.config)
- New app:
npm create just-dom@latest(CLI)
See the site docs for lucidePlugin (all icons) vs createLucidePlugin (tree-shake friendly).
