透過 100 多個技巧的集合學習 Nuxt!

lucide-icons
nuxt-lucide-icons

整合 Lucide 圖示的 Nuxt 模組

Nuxt Lucide 圖示

npm versionLicenseBuy us a treeCode styleTestsnpm downloadsMade by SWISNuxt

這個 Nuxt 模組讓使用 Lucide 圖示變得輕而易舉!

功能

  • 🚠  自動導入 Lucide 圖示
  • 🎛️  可設定的名稱前綴
  • 🌲  支援 tree-shaking

快速設定

用一個指令將模組安裝到您的 Nuxt 應用程式

npx nuxi module add lucide-icons

就這樣!您現在可以在您的 Nuxt 應用程式中使用所有 Lucide 圖示

<template>
  <div>
    <h1>Nuxt Lucide Icons</h1>
    <LucideRocket />
    <LucideFolderGit2 color="red" />
    <LucideGithub :size="32" />
  </div>
</template>

注意:請務必在本地開發時停用您的廣告封鎖程式。某些廣告封鎖程式(例如 uBlock Origin)在偵測到指紋圖示時會封鎖所有後續請求。有關更多資訊,請參閱以下問題

設定

不喜歡預設的元件名稱前綴嗎?您可以在 nuxt.config.ts 中更改它

export default defineNuxtConfig({
  modules: [
    'nuxt-lucide-icons'
  ],

  lucide: {
    namePrefix: 'Icon'
  }
})

變更日誌

請參閱 CHANGELOG 以獲取有關最近變更的更多資訊。

貢獻

本地開發
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

請參閱 CONTRIBUTINGCODE_OF_CONDUCT 以獲取詳細資訊。

安全

如果您發現任何與安全相關的問題,請發送電子郵件至 security@swis.nl 而不是使用問題追蹤器。

致謝

許可證

MIT 許可證 (MIT)。請參閱 許可證檔案 以獲取更多資訊。

這個套件是 Treeware。如果您在生產環境中使用它,我們要求您為世界購買一棵樹,以感謝我們的工作。通過為 Treeware 森林做出貢獻,您將為當地家庭創造就業機會並恢復野生動物棲息地。

SWIS ❤️ 開源

SWIS 是一家來自荷蘭萊頓的網路代理公司。我們喜歡使用開源軟體。