Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/polaris-icons

Package Overview
Dependencies
Maintainers
12
Versions
796
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/polaris-icons

This is a public package. Although it is possible to use it directly, we recommend using it through [Polaris React](https://github.com/Shopify/polaris-react). All of the icons in this package are also available in Polaris through the [Icon](https://polari

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138K
decreased by-2.28%
Maintainers
12
Weekly downloads
 
Created

What is @shopify/polaris-icons?

@shopify/polaris-icons is a package that provides a collection of icons used in Shopify's Polaris design system. These icons are designed to be used in Shopify applications to maintain a consistent look and feel.

What are @shopify/polaris-icons's main functionalities?

Importing Icons

You can import individual icons from the @shopify/polaris-icons package. This allows you to use specific icons in your application without importing the entire icon set.

import { CirclePlusMajor } from '@shopify/polaris-icons';

Using Icons in Components

You can use the imported icons in your components by passing them as a source to the Icon component from the Polaris library.

import { Icon } from '@shopify/polaris';
import { CirclePlusMajor } from '@shopify/polaris-icons';

function MyComponent() {
  return (
    <Icon source={CirclePlusMajor} />
  );
}

Customizing Icon Size and Color

You can customize the size and color of the icons by passing additional props to the Icon component.

import { Icon } from '@shopify/polaris';
import { CirclePlusMajor } from '@shopify/polaris-icons';

function MyComponent() {
  return (
    <Icon source={CirclePlusMajor} color="red" backdrop />
  );
}

Other packages similar to @shopify/polaris-icons

FAQs

Package last updated on 14 Mar 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc