@elgato/icons

中文文档
2.5.1发布于 2026/07/08MITTypeScriptES Module零依赖构建来源已验证近 30 天下载 3251

Icons used throughout the Elgato ecosystem.

原始使用文档
文档目录5 节
  1. Usage
  2. JavaScript Variables
  3. React Components
  4. SVG Files
  5. Font

Elgato icons banner

Elgato Icons

Elgato homepage Join the Marketplace Makers Discord Build status

Discover icons used throughout the Elgato ecosystem, commonly found in Stream Deck, Wave Link, Camera Hub, Capture, and Marketplace. Mix, match, and curate your own icon packs based on our design language.

Usage

npm install @elgato/icons

JavaScript Variables

Icons can be imported as SVG strings from @elgato/icons/{s,m,l}, for example:

import { iconLogoElgato } from "@elgato/icons/l";

iconLogoElgato; // SVG string of the Elgato logo, large (l) size.

Icons are available in up to three sizes, small (s), medium (m), and large (l).

  • @elgato/icons/s — optimized for 16 × 16 px.
  • @elgato/icons/m — optimized for 20 × 20 px.
  • @elgato/icons/l — optimized for 24 × 24 px.

React Components

Icons can be imported as React components from @elgato/icons/react, for example

import { IconLogoElgato } from "@elgato/icons/react";

export default function MyComponent() {
    return (
        <div className="icon-wrapper">
            <IconLogoElgato size="m" />
        </div>
    );
};

Icons are available in up to three sizes, small (s), medium (m), and large (l), and the preferred size can be specified using the size property. If the preferred size does not exist, the default size will be used.

SVG Files

All original SVG files are distributed with this package, and can be found within the svg/ directory.

.
├── svg/
|   └── l/
│   ├── m/
│   ├── s/
|   │   ├── ...
|   │   ├── warning.svg
|   │   ├── window--filled.svg
|   │   └── window.svg
└── ...

Font

An icon font is distributed in the font/ directory, in TTF, WOFF, and WOFF2 formats, with a ready-to-use CSS stylesheet.

.
├── font/
│   ├── elgato-icons.css
│   ├── elgato-icons.ttf
│   ├── elgato-icons.woff
│   ├── elgato-icons.woff2
│   └── info.json
└── ...

Import the stylesheet from the package and use icon class names directly:

import "@elgato/icons/font";

Or reference it directly in HTML via a CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@elgato/icons/font/elgato-icons.css" />

<i class="elgato-icons-accessories-l"></i>
<i class="elgato-icons-camera-l"></i>
<i class="elgato-icons-settings-l"></i>

Class names follow the patterns elgato-icons-{icon-name}-{size} for regular icons and elgato-icons-{icon-name}--filled-{size} for filled variants, where {size} is one of l, m, or s. A full mapping of icon names (including filled variants) to unicode code points can be found in font/info.json.

版本与发布记录

@elgato/icons 共发布 14 个版本,首次发布于 2024/12/18;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.5.1latest2026/07/084 个月前
2.5.02026/05/225 个月前
2.4.02026/04/276 个月前
2.3.02026/03/197 个月前
2.2.02026/03/197 个月前
2.1.02026/02/208 个月前

关于 @elgato/icons 的常见问题

@elgato/icons 是什么?

Icons used throughout the Elgato ecosystem.

如何安装 @elgato/icons?

在项目目录运行 npm install @elgato/icons,或使用 pnpm add / yarn add / bun add。

@elgato/icons 支持 TypeScript 吗?

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

@elgato/icons 支持 ESM 还是 CommonJS?

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

@elgato/icons 可以商用吗?

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

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

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

@elgato/icons 还在维护吗?

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