Denji converts Iconify SVG icons into typed framework components. Icons are fetched, optimized (SVGO), and generated as native components for your framework.
Initialize a Denji project. Creates denji.json config and icons template.
| --framework | react, preact, solid, qwik, vue, svelte | | --output | Output path for icons file/folder | | --output-type | file (single file) or folder (one file per icon) | | --typescript / --no-typescript | TypeScript or JavaScript (default: TS) | | --a11y | hidden, img, title, presentation, or false |
Denji CLIを使用してSVGアイコンをフレームワークコンポーネントとして管理します。ユーザーが React、Preact、Solid、Qwik、Vue、または Svelte プロジェクトで SVG アイコンを追加、削除、リスト、または管理する必要がある場合に使用します。トリガーには、「アイコンの追加」、「アイコンのセットアップ」、「SVG アイコンの管理」、「アイコンの削除」、「アイコンの一覧表示」、またはフレームワーク コンポーネントとしてアイコン化に関連するタスクなどのリクエストが含まれます。 ソース: fellipeutaka/leon。