JSPM

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

Ant Design Icons

Package Exports

  • @ant-design/icons
  • @ant-design/icons/lib
  • @ant-design/icons/lib/manifest

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.

Status: Alpha

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 { Alibaba } from '@ant-design/icons/es';

console.log(Alibaba);

// Output:
// { width: 1024,
//   height: 1024,
//   viewBox: '0 0 1024 1024',
//   style: '',
//   children:
//    [ { tag: 'path', attrs: [Object] },
//      { tag: 'path', attrs: [Object] } ],
//   name: 'alibaba' }

Interface

This library export all SVG files as IconDefinition.

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

interface AbstractTree {
  width: number;
  height: number;
  viewBox: string;
  style?: string;
  children: Array<{ tag: string, attrs: { [key: string]: string } }>;
}

Build

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