New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-uikit/icons

Package Overview
Dependencies
Maintainers
3
Versions
909
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/icons

## Usage

0.0.0-canary-202066121959
Source
npm
Version published
Weekly downloads
8.5K
-26.95%
Maintainers
3
Weekly downloads
 
Created
Source

Icons

Usage

import { ExportIcon } from '@commercetools-frontend/ui-kit';

<ExportIcon />;
Description

You can find a list of all available icons in the UIKit.

How to add new icons
  • add the SVG file you got from the designer to @commercetools-frontend/ui-kit/icons/svg
  • restart webpack (npm start in development)
Properties
PropsTypeRequiredValuesDefaultDescription
sizestring'small', 'medium', 'big', 'scale''big'Specifies the icon size (if scale is selected, the dimensions will scale according with the parents)
colorstring'solid', 'neutral60', 'info', 'primary', 'primary40', 'warning', 'error''solid'Specifies the icon color
Where to use

Main use cases are:

  • Buttons

    <SecondaryButton
      onClick={() => {}}
      iconLeft={<ExportIcon />}
      label={this.props.intl.formatMessage(messages.exportList)}
    />
    
  • Icon Buttons

    <IconButton
      onClick={() => {}}
      icon={<ExportIcon />}
      label={this.props.intl.formatMessage(messages.exportList)}
    />
    

FAQs

Package last updated on 06 Jul 2020

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