JSPM

  • Created
  • Published
  • Downloads 2006020
  • Score
    100M100P100Q248958F
  • License MIT

Ant Design Icons

Package Exports

  • @ant-design/icons
  • @ant-design/icons/lib
  • @ant-design/icons/lib/manifest
  • @ant-design/icons/lib/mapNameToThemedName
  • @ant-design/icons/lib/outline/SwapOutline
  • @ant-design/icons/lib/outline/UploadOutline

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ant-design/icons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ant Design Icons

⭐ The abstract trees of the Ant Design SVG icons.

NPM version NPM downloads

⚠️ Status: Beta

⚠️ The APIs and icons may change in the future, please do NOT use in any production environment.

Install

yarn add @ant-design/icons # or npm install @ant-design/icons --save

Use Library Adapter

Usage

import { AntDesign } from '@ant-design/icons/es';

console.log(AntDesign);
// Output:
// { name: 'ant-design',
//   tag: 'svg',
//   attrs:
//    { xmlns: 'http://www.w3.org/2000/svg',
//      viewBox: '0 0 1024 1024' },
//   children:
//    [ { tag: 'path', attrs: [Object], children: [] },
//      { tag: 'path', attrs: [Object], children: [] } ] }

Interface

This library export all SVG files as IconDefinition.

interface AbstractNode {
  tag: string;
  attrs: {
    [key: string]: string;
  };
  children: AbstractNode[];
}

interface IconDefinition extends AbstractNode {
  name: string; // kebab-case-style
}

Build

npm run generate # Generate files to ./src
npm run build # Build library
npm run test # Runing Test