Socket
Book a DemoInstallSign in
Socket

@brevio/icons

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@brevio/icons

This is the @brevio/icons library v3, consisting of the iconography elements used in our frontend components/design.

3.1.5
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Brevio icons

This is the @brevio/icons library v3, consisting of the iconography elements used in our frontend components/design.

Usage

Installation

npm install @brevio/icons

Simple example

import { Icons } from "@brevio/icons";

<Icons.Hamburger size="xl" active inverted ref={myRefHook} />;

Concurrent usage with v2

Until the redesign is fully implemented, we will be using both v2 and v3 versions of the @brevio/icons package concurrently. This is achieved using npm package aliasing, for example in package.js:

"dependencies": {
  "@brevio/icons": "^2.0.0",
  "@brevio/icons-v3": "npm:@brevio/icons@^3.0.0"
}

and then

import { Icons } from "@brevio/icons";
import { Icons as IconsV3 } from "@brevio/icons-v3";

Automatic generation

Currently, due to the large amount of icons, src/icons/components is generated using the SVGR tool that turns the raw svg files in svg/icons into React components, using the template svgr/template.js.

All the SVGR processing is configured in package.js, field svgr.

This process can be run with npm run build:icons.

Publishing new version

  • Change version number in package.json
  • Run npm i to update package-lock.json
  • npm run build to build
  • git commit -am "<commit message>"
  • git tag -a v3.<minor>.<patch> -m "<release message>"
  • git push --tags origin
  • npm publish --access public

FAQs

Package last updated on 14 Oct 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.