Socket
Socket
Sign inDemoInstall

@paprika/icon

Package Overview
Dependencies
88
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paprika/icon

Icon component is a graphic to represent something else


Version published
Weekly downloads
9.2K
decreased by-7.51%
Maintainers
3
Created
Weekly downloads
 

Readme

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

Last updated on 22 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc