1.11.8 • Published 3 days ago

@epilot360/icons v1.11.8

Weekly downloads
-
License
MIT
Repository
-
Last release
3 days ago

@epilot360/icons

License npm version

Curated set of epilot icons based on material-symbols.

Installation

yarn add @epilot360/icons

Documentation

View full list of icons in our Storybook Documentation.

Usage

The @epilot360/icons package is shipped as an external system module in the 360 portal.

You can import any icon as a React component by name:

import { Edit as EditIcon, EpilotIcon } from '@epilot360/icons'

<EditIcon />
// or
<EpilotIcon name="edit" />

Usage outside 360 portal

To avoid bundling the entire @epilot360/icons library, you can import the module directly:

import EditIcon from '@epilot360/icons/react/Edit'

<EditIcon />

Using SVG

To directly use svg files shipped as part of this package, e.g. with file-loader you can import from:

import EditIconSVG from '@epilot360/icons/svg/Edit/icon.svg'
import EditIconSVGFill from '@epilot360/icons/svg/Edit/icon-fill.svg'

<img src={EditIconSVG} />

Using svgIcon()

The svgIcon() function returns the raw SVG as a string.

import { svgIcon } from '@epilot360/icons';

<div dangerouslySetInnerHTML={{ __html: svgIcon({ name: 'epilot' }) }} />

<pre>
  {svgIcon({ name: 'epilot', variant: 'filled', width: 48, height: 48, fill: 'white' })}
</pre>

Development

Run storybook locally:

yarn storybook

To add a new icon, modify icons.config.yaml and run the codegen script.

yarn codegen

You should immediately see your new icon.

Adding custom icons (non Material)

First add a custom icon to icons.config.yaml without an svg_import property. This prevents codegen from overriding your custom icon module.

Then add the custom svg. See src/svg/Epilot for an example.

1.11.8

3 days ago

1.11.7

7 days ago

1.11.6

10 days ago

1.11.5

29 days ago

1.11.4

2 months ago

1.11.3

2 months ago

1.11.2

2 months ago

1.11.1

4 months ago

1.9.0

4 months ago

1.11.0

4 months ago

1.10.0

4 months ago

1.8.0

4 months ago

1.7.1

6 months ago

1.7.0

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.3

7 months ago

1.4.2

7 months ago

1.4.1

7 months ago

1.4.0

7 months ago

1.3.0

7 months ago

1.2.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago

0.1.0

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago