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

@paprika/icon

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/icon

Icon component is a graphic to represent something else

3.0.1
latest
Source
npm
Version published
Weekly downloads
6.3K
6.71%
Maintainers
3
Weekly downloads
 
Created
Source

Icon

Description

<Icon> component is a graphic to represent something else

Installation

yarn add @paprika/icon

or with npm:

npm install @paprika/icon

Usage

IMPORTANT: PAPRIKA MAKES USE OF SOME PROPRIETARY ICONS THAT REQUIRE A LICENCE IN ORDER TO BE CONSUMED. PLEASE REPLACE THOSE PROPRIETARY ICONS OUTSIDE OF THE HIGHBOND PLATFORM. PLEASE DO NOT CONSUME THESE ICONS DIRECTLY.

For each SVG icon, we export the respective <Icon> component from the @paprika/icon package. You can see the full list of these icons.

To add a custom icon to paprika components, you can do the following:

import { ArrowDown } from "@paprika/icon";
import tokens from "@paprika/tokens";

// Usually tokens.icon.sizeSm should be used for size
<ArrowDownIcon size={tokens.icon.sizeSm} />;

Note

  • The exported @paprika/icon is using PascalCase naming (for example ArrowDown, ArrowLeft)

  • If you are a consumer who needs a custom icon for your project, you have to use wasabicons (only accessible to Galvanize users)

FAQs

Package last updated on 22 Apr 2023

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