@datalayer/icons-all

中文文档
0.0.1发布于 2026/08/17TypeScriptCommonJS近 30 天下载 6010

Datalayer

原始使用文档
文档目录11 节
  1. For React.js developers
  2. For JupyterLab developers
  3. For Data Products Designers
  4. Stencils
  5. Theming
  6. For users
  7. Icons Gallery
  8. Icon Properties
  9. SVG Open Sources
  10. Releases
  11. ⚖️ License

Datalayer

Become a Sponsor

☰ 🎉 Datalayer Icons

React.js and JupyterLab icons for data products.

This repository contains a collection of React.js icons useful at Datalayer, covering Jupyter, Kubernetes and other ecosystems.

The icons are also shipped as LabIcon objects, ready-to use icons in JupyterLab.

You are welcome to use those icons in your own data product. A preview is available on https://datalayer.design, give us a star ⭐ if you like it.

The package is published on NPM.js @datalayer/icons-react and can be added as dependency on any JavaScript or TypeScript project.

Datalayer Icons

Please open an issue or a pull request to update, add... your icons or for any suggestion, question about this repository content.

We are looking to connect with existing data developers community, like the Jupyter community.

For React.js developers

Add @datalayer/icons-react as dependency, import an icon and render it.

import { DatalayerGreenIcon } from "@datalayer/icons-react";

render(
  <DatalayerGreenIcon/>
  <DatalayerGreenIcon size="large" colored/>
)

Example with AiAgentIcon and theme-aware color.

import React from 'react';
import { AiAgentIcon } from '@datalayer/icons-react';
import {
  ThemedProvider,
  AppearanceControlsWithStore,
  useThemeStore,
  useColorPalette,
} from '@datalayer/primer-addons';

const AiAgentIconExample = () => {
  const palette = useColorPalette();

  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
      <AiAgentIcon size="large" colored style={{ color: palette.primary }} />
      <AiAgentIcon size="large" style={{ color: palette.primary }} />
    </div>
  );
};

export const App = () => (
  <ThemedProvider useStore={useThemeStore}>
    <AppearanceControlsWithStore useStore={useThemeStore} />
    <AiAgentIconExample />
  </ThemedProvider>
);

For JupyterLab developers

JupyterLab icons need to be created with the LabIcon class. JupyterLab machinary are some restrictions as not being able to create a LabIcon from a React.js component (though being able to export a React.js component from a LabIcon), or not being able to load a SVG from a remote location (like a HTTP or S3 server).

For ease of use, we expose all the icons as LabIcon you can import and directly use.

import { scientistIconLabIcon } from '@datalayer/icons-react/data2/ScientistIconLabIcon';

If you need to create you own React component from a SVG, just import the optimized SVG artifact and reuse it in your application.

import satelliteIconSvg from '@datalayer/icons-react/data2/SatelliteIcon.svg';

To load SVG from TypeScript, you will need to create a type declaration file.

// svg.d.ts
declare module "*.svg" {
  const value: any;
  export default value;
}

For Data Products Designers

Data Product Designers may add or update the existing icons.

For that, the initial steps is to clone this repository and install the dependencies.

git clone https://github.com/datalayer/icons
cd icons
npm install

Designers will create a SVG and add it in one of the svg subfolder of this repository.

To add an icon to this repository, add the SVG (preferably of viewBox 0 0 20 20) of the icon one of the svg sub-folder. Then run the following commands.

TODO: Describe the difference between data1 and data2.

npm run build-icons

You can preview the icons running the following command (sometimes the colors do not correspond due to many icons being shown).

npm start

Stencils

We will work to create stencils for drawing tools.

Theming

We aim to support Primer React, JupyterLab as Docusaurus themings.

For users

You can download a PNG or SVG version of the icon from https://datalayer.design.

To view an gallery of available icons, run the following commands.

npm install
npm run build
npm run dev

Icon Properties

  • colored - Display a colored version of the Icon (if available).
  • size: "small" | "medium" | "large" | number - Specify the size of your icon - "small" by default.
// For example.
<DatalayerIcon colored size="large"/>

SVG Open Sources

These are useful places for open-source SVGs.

Releases

Datalayer Icons is released in Npm.js.

⚖️ License

Copyright (c) 2022 Datalayer, Inc.

The icons are released under the terms of the MIT license (see LICENSE).

The 3rd party icons are redistributed for convenience under their respective license.

版本与发布记录

@datalayer/icons-all 共发布 1 个版本,首次发布于 2026/08/17;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.0.1latest2026/08/172 个月前

关于 @datalayer/icons-all 的常见问题

如何安装 @datalayer/icons-all?

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

@datalayer/icons-all 支持 TypeScript 吗?

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

@datalayer/icons-all 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@datalayer/icons-all 可以商用吗?

@datalayer/icons-all 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@datalayer/icons-all 的下载量有多少?

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

@datalayer/icons-all 还在维护吗?

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