@norwaypost/mybring-iconsystem

Javascript resources for loading and displaying icons from the Mybring Design System

Usage no npm install needed!

<script type="module">
  import norwaypostMybringIconsystem from 'https://cdn.skypack.dev/@norwaypost/mybring-iconsystem';
</script>

README

Mybring Icon System

How to use with a React app

Install @norwaypost/mybring-iconsystem using npm or yarn.

import { ServiceIcon, Mybicon } from "@norwaypost/mybring-iconsystem";
<Mybicon name="mybicon-search" />
<Mybicon
  name="mybicon-search"
  className="optional-classname"
  iconTitle="optional-title"
  width="{16}"
  height="{16}"
/>
<ServiceIcon name="serviceicon-building" />
<ServiceIcon
  name="serviceicon-building"
  className="optional-classname"
  iconTitle="optional-title"
  width="{48}"
  height="{48}"
/>

Props:

The react component accepts the props name, className, iconTitle, width and height. Only name is required.