0.1.0-hack • Published 4 years ago
@paprika/hf-icon v0.1.0-hack
Icon
Description
<Icon> component is a graphic to represent something else
Installation
yarn add @paprika/iconor with npm:
npm install @paprika/iconUsage
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 ArrowDownIcon from "@paprika/icon/lib/ArrowDown";
// or
// import { ArrowDown } from "@paprika/icon";
<ArrowDownIcon />;Note
The exported
@paprika/iconis 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)