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

@shopify/polaris-icons

Package Overview
Dependencies
Maintainers
24
Versions
796
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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)

  • 0.0.0-snapshot-20240424235624
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138K
decreased by-2.28%
Maintainers
24
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 24 Apr 2024

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