@frontiers/icons

中文文档
2.3.0发布于 2026/11/05MITTypeScriptES Module零依赖近 30 天下载 8521

A comprehensive icon library with 203 SVG icons and Vue 3 components for the Frontiers design system

原始使用文档
文档目录21 节
  1. Features
  2. Installation
  3. Quick Start
  4. Usage
  5. Import Components
  6. Import SVG Files
  7. Props
  8. Styling
  9. Examples
  10. Button with Icon
  11. Loading State
  12. Dynamic Icons
  13. Navigation Menu
  14. Available Icons (203)
  15. Migration to v2.0.0
  16. Renamed Icons (6)
  17. Update Imports
  18. TypeScript
  19. Package Exports
  20. Contributing
  21. License

@frontiers/icons

203 professionally designed icons as Vue 3 components and SVG files for the Frontiers design system.

npm version License: MIT

Features

  • 🎨 203 icons - Complete design system coverage
  • ⚡ Vue 3 components - Ready-to-use with TypeScript support
  • 📦 Tree-shakeable - Import only what you need
  • 🎯 Customizable - Dynamic size and color via currentColor
  • 📁 Raw SVGs - Use in any framework

Installation

npm install @frontiers/icons
# or
pnpm add @frontiers/icons

Quick Start

<script setup>
import { ChevronRightIcon, UserFillIcon, AlertIcon } from "@frontiers/icons"
</script>

<template>
  <ChevronRightIcon :size="24" />
  <UserFillIcon :size="32" class="text-blue-500" />
  <AlertIcon />
</template>

Usage

Import Components

<script setup>
// Import from root (recommended)
import { ChevronRightIcon, AlertIcon } from "@frontiers/icons"

// Or from components
import { ChevronRightIcon } from "@frontiers/icons/components"
</script>

Import SVG Files

import chevronRight from "@frontiers/icons/svg/chevron-right.svg"

Props

All Vue components accept:

PropTypeDefaultDescription
sizeNumber | String24Icon size in px

Plus all standard SVG attributes via v-bind="$attrs".

Styling

Icons use currentColor for easy theming:

<template>
  <!-- Inherits text color -->
  <div class="text-blue-500">
    <ChevronRightIcon />
  </div>

  <!-- With Tailwind -->
  <AlertIcon class="w-6 h-6 text-red-500" />

  <!-- Custom size -->
  <UserFillIcon :size="32" style="color: #007bff;" />
</template>

Examples

Button with Icon

<template>
  <button class="btn">
    <span>Next</span>
    <ChevronRightIcon :size="20" />
  </button>
</template>

Loading State

<script setup>
import { SpinnerIcon } from "@frontiers/icons"
const loading = ref(false)
</script>

<template>
  <button :disabled="loading">
    <SpinnerIcon v-if="loading" class="animate-spin" :size="20" />
    <span v-else>Submit</span>
  </button>
</template>

Dynamic Icons

<script setup>
import { computed } from "vue"
import * as Icons from "@frontiers/icons"

const props = defineProps({ icon: String, size: Number })
const IconComponent = computed(() => Icons[props.icon])
</script>

<template>
  <component :is="IconComponent" :size="size" />
</template>

<!-- Usage: pass icon names like "ChevronRightIcon", "UserFillIcon", etc. -->

Navigation Menu

<script setup>
import { HomeIcon, UserIcon, SettingsIcon } from "@frontiers/icons"
</script>

<template>
  <nav>
    <router-link to="/"><HomeIcon :size="20" /> Home</router-link>
    <router-link to="/profile"><UserIcon :size="20" /> Profile</router-link>
    <router-link to="/settings"
      ><SettingsIcon :size="20" /> Settings</router-link
    >
  </nav>
</template>

Available Icons (203)

View the complete icon gallery in the demo.html file or explore icons by category below.

Navigation (32)

ArrowDownIcon, ArrowDownCircledIcon, ArrowDownCircledFillIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowLeftAndRightIcon, ArrowLeftCircledIcon, ArrowLeftCircledFillIcon, ArrowRightIcon, ArrowRightCircledIcon, ArrowRightCircledFillIcon, ArrowUpIcon, ArrowUpAndDownIcon, ArrowUpCircledIcon, ArrowUpCircledFillIcon, ArrowUpLeftIcon, ArrowUpRightIcon, ChevronDownIcon, ChevronDownCircledIcon, ChevronDownCircledFillIcon, ChevronLeftIcon, ChevronLeftCircledIcon, ChevronLeftCircledFillIcon, ChevronRightIcon, ChevronRightCircledIcon, ChevronRightCircledFillIcon, ChevronUpIcon, ChevronUpCircledIcon, ChevronUpCircledFillIcon, FirstPageIcon, LastPageIcon

UI Elements (21)

BurgerIcon, CheckIcon, CheckmarkIcon, CheckmarkFillIcon, CloseIcon, CloseCircledIcon, CloseCircledFillIcon, DragIcon, FilterIcon, FilterFillIcon, HomeIcon, HomeFillIcon, LessIcon, MagnifyingGlassIcon, MoreCircledIcon, MoreCircledFillIcon, MoreOptionsHorizontalIcon, MoreOptionsVerticalIcon, SpinnerIcon, UserIcon, UserFillIcon

Actions (23)

AttachmentIcon, CopyIcon, DeleteIcon, DeleteFillIcon, DownloadIcon, EditIcon, ForwardIcon, FullscreenIcon, LinkIcon, LinkedinIcon, NoFullscreenIcon, OpenInNewIcon, OpenInNewFillIcon, ReloadIcon, ReplyIcon, ReplyAllIcon, SaveIcon, SaveFillIcon, SendIcon, SendFillIcon, ShareIcon, ShareFillIcon, StopIcon

Status & Feedback (23)

AlertIcon, AlertFillIcon, ClockIcon, ClockFillIcon, FeedbackErrorBlackIcon, FeedbackErrorWhiteIcon, FeedbackInfoBlackIcon, FeedbackInfoWhiteIcon, FeedbackSuccessBlackIcon, FeedbackSuccessWhiteIcon, FeedbackWarningBlackIcon, FeedbackWarningWhiteIcon, HelpIcon, HelpFillIcon, HelpNoCircledIcon, HideIcon, HideFillIcon, InfoIcon, InfoFillIcon, NotificationIcon, NotificationFillIcon, ViewIcon, ViewFillIcon

Content Types (15)

ArticleIcon, ArticleFillIcon, ArticleNewIcon, ContentHubIcon, EBookIcon, EBookFillIcon, NewsletterIcon, NewsletterFillIcon, PaperIcon, PaperFillIcon, ProductHubIcon, PublicIcon, PublicFillIcon, ResearchTopicsIcon, ResearchTopicsFillIcon

Social Media (8)

BlueskyIcon, FacebookIcon, InstagramIcon, LinkedinIcon, OrcidIcon, OrcidFillIcon, TikTokIcon, XTwitterIcon, YoutubeIcon

Organization (12)

CalendarIcon, CalendarFillIcon, FilesIcon, FilesFillIcon, GroupIcon, GroupFillIcon, ListIcon, ListNumberIcon, NumberedListIcon, SortIcon, SortAscendingIcon, SortDescendingIcon

Interactions (12)

BookmarkIcon, BookmarkFillIcon, ChatIcon, ChatFillIcon, FavoriteIcon, FavoriteFillIcon, LikeIcon, LikeFillIcon, ReviewForumIcon, ReviewForumFillIcon, StarIcon, StarFillIcon

Text Formatting (4)

BoldIcon, ItalicIcon, ReWriteIcon, UnderlineIcon

Other (56)

AtIcon, ChartBarIcon, ChartBarFillIcon, CloudDownloadIcon, CloudDownloadFillIcon, CloudOfflineIcon, CloudOfflineFillIcon, CloudOnlineFillIcon, DesktopIcon, DesktopFillIcon, DislikeIcon, DislikeFillIcon, EmojiIcon, FeedIcon, FlagIcon, FlagFillIcon, FundingIcon, FundingFillIcon, GraphLineIcon, HashtagIcon, HistoryIcon, ImageIcon, ImageFillIcon, LabelIcon, LabelFillIcon, LaptopIcon, LaptopFillIcon, LightbulbIcon, LockIcon, MarkAsReadIcon, MarkAsUnreadIcon, MoreIcon, OptOutIcon, PlaceIcon, PlaceFillIcon, PricetagIcon, PricetagFillIcon, PublishIcon, QuoteIcon, QuoteFillIcon, QuoteNoCircledIcon, QuoteNoCircledFillIcon, ReportIcon, RssIcon, RssFillIcon, SettingsIcon, SettingsFillIcon, SoundIcon, StrikethroughIcon, TodayIcon, UpLevelIcon, UploadIcon, VideoIcon

Migration to v2.0.0

Version 2.0.0 includes breaking changes from a Figma icon library sync. Icon names have been updated to follow a consistent naming convention.

Renamed Icons (6)

Old NameNew NameChange
CloseCircleFillIconCloseCircledFillIconCircle → Circled
QuoteNoCircleFillIconQuoteNoCircledFillIconCircle → Circled
QuoteNoCircleIconQuoteNoCircledIconCircle → Circled
HelpNoCircleIconHelpNoCircledIconCircle → Circled
SettingIconSettingsIconSetting → Settings
TiktokIconTikTokIconTiktok → TikTok

Update Imports

- import { SettingIcon, TiktokIcon, HelpNoCircleIcon, CloseCircleFillIcon } from '@frontiers/icons'
+ import { SettingsIcon, TikTokIcon, HelpNoCircledIcon, CloseCircledFillIcon } from '@frontiers/icons'

TypeScript

Full TypeScript support included:

import type { IconComponent, IconName } from "@frontiers/icons"
import { ChevronRightIcon } from "@frontiers/icons"

const icon: IconComponent = ChevronRightIcon
const name: IconName = "ChevronRightIcon"

Package Exports

{
  "exports": {
    ".": "./dist/index.mjs",
    "./components": "./dist/components/index.mjs",
    "./svg/*": "./svg/*.svg"
  }
}

Contributing

For development and contribution guidelines, see CONTRIBUTING.md.

License

MIT © Frontiers


203 icons • Vue 3 • TypeScript • Tree-shakeable • Zero dependencies

版本与发布记录

@frontiers/icons 共发布 7 个版本,首次发布于 2025/10/23;过去 12 个月发布了 4 个版本。

版本发布日期距今
2.3.0latest2026/11/0510 天前
2.2.02026/07/134 个月前
2.1.02026/06/025 个月前
2.0.02026/01/169 个月前
1.1.12025/10/291 年前
1.1.02025/10/241.1 年前

关于 @frontiers/icons 的常见问题

@frontiers/icons 是什么?

A comprehensive icon library with 203 SVG icons and Vue 3 components for the Frontiers design system

如何安装 @frontiers/icons?

在项目目录运行 npm install @frontiers/icons,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@frontiers/icons 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@frontiers/icons 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@frontiers/icons 可以商用吗?

@frontiers/icons 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@frontiers/icons 的下载量有多少?

根据 npm 官方下载统计,@frontiers/icons 在 2026/10/16 – 2026/11/14 这 30 天内被下载 8,521 次,日均约 284 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@frontiers/icons 还在维护吗?

最新版本 2.3.0 发布于 2026/11/05(10 天前);至今共发布 7 个版本,其中过去 12 个月发布了 4 个;首次发布于 2025/10/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。