This package only provides an adapter function of Lucide icons for Svelte on Deno. The adapter function returns Snippet of an icon specified by argument.
deno add npm:lucide jsr:@scirexs/lucide
createRawSnippet
.import { createRawSnippet, type Snippet } from "svelte";
import { type IconNode, lucideSnippet } from "@scirexs/lucide";
// `as Snippet<[IconNode, string]>` is necessary because TypeScript cannot infer
// the correct type when the symbol is nested inside the Snippet generic
const lucide = lucideSnippet(createRawSnippet) as Snippet<[IconNode, string]>;
import { TentTree } from "lucide";
{@render lucide(TentTree, "class value for svg")}