🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@commercetools-uikit/icons

Package Overview
Dependencies
Maintainers
3
Versions
975
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/icons

## Usage

Source
npmnpm
Version
0.0.0-canary-202061012469
Version published
Weekly downloads
9.3K
-35.96%
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 10 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