@shopify/polaris-icons
[![npm version](https://img.shields.io/npm/v/@shopify/polaris-icons.svg?style=flat)](https://www.npmjs.com/package/@shopify/polaris-icons)
$ cnpm install @shopify/polaris-icons 
SYNC missed versions from official npm registry.

@shopify/polaris-icons

npm version

This package exports a JavaScript file containing the Polaris icons that can be used by partners building on the Shopify platform, and contains SVG files in the /images/ directory.

Browse and search Polaris icons: https://polaris-icons.shopify.com.

Getting started

Although it's possible to use this package directly, we recommend using the icons in this package through Polaris React in combination with the Icon component from that project. Make sure that your app is using Polaris React version 3.10.0 or higher.

Installation

After you have Polaris React installed, you need to add Polaris icons as a dependency.

Run the following command using npm:

npm install @shopify/polaris-icons --save

If you prefer Yarn, then use the following command instead:

yarn add @shopify/polaris-icons

Usage

Import the Icon component from Polaris React and any icon from Polaris icons into your project.

  1. Include the icon component from Polaris React:

    import {Icon} from '@shopify/polaris';
    
  2. Include an icon from Polaris icons:

    import {AddMajorMonotone} from '@shopify/polaris-icons';
    
  3. Pass the imported Polaris icon to the source prop of the Icon component:

    <Icon source={AddMajorMonotone} />
    

SVG files

For consumers who don’t use React, we provide SVG files within the images folder.

View the list of available files on unpkg.

Contributing ????

Make changes to this package to add, remove, or rename publicly available icons. See our contributing guide. ????

Licenses ????

  • Source code is under a custom license based on MIT. The license restricts Polaris icons usage to applications that integrate or interoperate with Shopify software or services, with additional restrictions for external, stand-alone applications.
  • All icons and images are licensed under the Polaris Design Guidelines License Agreement.

Current Tags

  • 3.8.0                                ...           latest (20 days ago)
  • 3.0.0-beta.6                                ...           next (9 months ago)

22 Versions

  • 3.8.0                                ...           20 days ago
  • 3.7.0                                ...           2 months ago
  • 3.6.0                                ...           3 months ago
  • 3.5.1                                ...           4 months ago
  • 3.5.0                                ...           4 months ago
  • 3.4.0                                ...           7 months ago
  • 3.2.1-test-gem-branch.1                                ...           8 months ago
  • 3.3.0                                ...           8 months ago
  • 3.2.0                                ...           9 months ago
  • 3.1.0                                ...           9 months ago
  • 3.0.0                                ...           9 months ago
  • 3.0.0-beta.6                                ...           9 months ago
  • 3.0.0-beta.5                                ...           9 months ago
  • 3.0.0-beta.3                                ...           10 months ago
  • 3.0.0-beta.2                                ...           10 months ago
  • 3.0.0-beta.1                                ...           10 months ago
  • 2.0.0                                ...           10 months ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-beta.5                                ...           a year ago
  • 1.0.0-beta.4                                ...           a year ago
  • 1.0.0-beta.3                                ...           a year ago
  • 1.0.0-beta.2                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |