Socket
Book a DemoInstallSign in
Socket

purched-antd-icons

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purched-antd-icons

Ant Design Icons

latest
Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
610
9.32%
Maintainers
1
Weekly downloads
 
Created
Source

Ant Design Icons

⭐ The abstract trees of the Ant Design SVG icons.

NPM version NPM downloads

Install

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

Use Library Adapter

  • React: See @ant-design/icons-react to learn about detail usage.

Usage

import { AlertOutline } from '@ant-design/icons';
// or import AlertOutline from '@ant-design/icons/lib/outline/AlertOutline';

console.log(AlertOutline);
// Output:
// {
//     name: 'alert',
//     theme: 'outline',
//     icon: {
//         tag: 'svg',
//         attrs: { viewBox: '64 64 896 896' },
//         children: [
//             {
//                 tag: 'path',
//                 attrs: {
//                     d: 'M193 796a32 32 0 0 0 32 32h574a32....'
//                 }
//             }
//         ]
//     }
// }

Interface

This library export all SVG files as IconDefinition.

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

interface IconDefinition {
  name: string; // kebab-case-style
  theme: ThemeType;
  icon:
    | ((primaryColor: string, secondaryColor: string) => AbstractNode)
    | AbstractNode;
}

Build

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

FAQs

Package last updated on 25 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts