Skip to content

别名

🌐 Aliased Names

有些图标有多个名称。这是因为我们有时选择重命名它们,以使它们与其余图标集更一致,或者原名称不够通用。例如,edit-2 图标被重命名为 pen,以使名称更通用,因为它只是一个笔的图标。

🌐 Some icons have multiple names. This is because we sometimes choose to rename them to make them more consistent with the rest of the icon set, or the name was not generic. For example, the edit-2 icon is renamed to pen to make the name more generic, since it is just a pen icon.

除了这些别名,Lucide 还包括可在项目中使用的前缀和后缀名称。这是为了防止与其他库或你自己的代码的导入名称冲突。

🌐 Beside these aliases, Lucide also includes prefixed and suffixed names to use within your project. This is to prevent import name collisions with other libraries or your own code.

tsx
// These are all the same icon
import {
  House,
  HouseIcon,
  LucideHouse,
} from "lucide-solid";

关闭 IDE 中的自动补齐功能

🌐 Turn off autocomplete in your IDE

.vscode/settings.json
json
{
  "js/ts.preferences.autoImportFileExcludePatterns": [
    "lucide-solid",
  ]
}