@deriv-com/quill-icons-web

中文文档
2.0.2发布于 2026/10/09MITTypeScriptESM + CJS零依赖近 30 天下载 4636

React icon components for Deriv's Quill design system, generated from Figma.

原始使用文档
文档目录8 节
  1. Install
  2. Usage
  3. Props
  4. Per-group imports
  5. Raw SVGs
  6. Formats
  7. Source & versioning
  8. License

@deriv-com/quill-icons-web

React icon components for Deriv's Quill design system. Every icon is generated straight from the Quill Figma library — the single source of truth — so what you import always matches design.

Install

npm install @deriv-com/quill-icons-web
# pnpm add @deriv-com/quill-icons-web
# yarn add @deriv-com/quill-icons-web

react >= 17 is required as a peer dependency.

Usage

import { Num0FlagPlaceholderIcon } from '@deriv-com/quill-icons-web'

export function Example() {
  return <Num0FlagPlaceholderIcon size={32} />
}

Icons in the system group are single-color and inherit the surrounding text color via currentColor:

<span style={{ color: 'rebeccapurple' }}>
  <ArrowLeftRegularIcon size={24} />
</span>

Other groups (flags, markets, currency, accounts, …) keep their fixed brand colors from Figma — do not wrap them in a color style expecting them to tint.

Props

Each icon extends React.SVGProps<SVGSVGElement> and adds:

PropTypeDefaultDescription
sizenumber | string24Sets both width & height.

Every other SVG prop (className, fill, onClick, ref, aria-*, …) passes straight through to the underlying <svg>.

Per-group imports

Import a single group to keep things tidy (the package is fully tree-shakeable either way):

import { Num0FlagPlaceholderIcon } from '@deriv-com/quill-icons-web/flag'

Available groups: accounts, app-stores, currency, flag, markets, social, system, trade.

Raw SVGs

The source SVG files ship in the package if you need them directly:

import iconUrl from '@deriv-com/quill-icons-web/svg/flag/0-flag-placeholder.svg'

Formats

Ships ESM + CommonJS with TypeScript types. sideEffects: false for tree-shaking.

Source & versioning

Generated from Figma by the pipeline in deriv-com/product-design-quill-icons. Generated files are not edited by hand — changes flow from the Figma library.

License

MIT © Deriv

版本与发布记录

@deriv-com/quill-icons-web 共发布 19 个版本,首次发布于 2026/07/20;过去 12 个月发布了 19 个版本。

版本发布日期距今
2.0.2latest2026/10/091 个月前
2.0.12026/09/181 个月前
2.0.02026/08/272 个月前
1.0.142026/08/272 个月前
1.0.122026/08/212 个月前
1.0.112026/08/212 个月前

关于 @deriv-com/quill-icons-web 的常见问题

@deriv-com/quill-icons-web 是什么?

React icon components for Deriv's Quill design system, generated from Figma.

如何安装 @deriv-com/quill-icons-web?

在项目目录运行 npm install @deriv-com/quill-icons-web,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=17)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@deriv-com/quill-icons-web 支持 TypeScript 吗?

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

@deriv-com/quill-icons-web 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@deriv-com/quill-icons-web 可以商用吗?

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

@deriv-com/quill-icons-web 的下载量有多少?

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

@deriv-com/quill-icons-web 还在维护吗?

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