Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.21 KB

File metadata and controls

54 lines (37 loc) · 1.21 KB

Corona Dashboard Icons

This package contains all of the icons used in the Corona Dashboard.

We forked react-feather and adapted it to our needs. Carmelo Pullara and other contributors, thanks for the inspiration and open-sourcing your codebase!

Preview

A complete (auto-generated) list of all the available icon names and icon preview is available here: icons.md.

Usage

import React from 'react';
import { Bibliotheek } from '@corona-dashboard/icons';

const App = () => {
  return <Bibliotheek />;
};

export default App;

Icons can be configured with inline props:

<Bibliotheek color="red" size={48} />

If you can't use ES6 imports, it's possible to include icons from the compiled folder ./dist.

var Bibliotheken =
  require('@corona-dashboard/icons/dist/icons/Bibliotheek').default;

var MyComponent = React.createClass({
  render: function () {
    return <Bibliotheek />;
  },
});

You can also include the whole icon pack:

import React from 'react';
import * as Icon from '@corona-dashboard/icons';

const App = () => {
  return <Icon.Bibliotheken />;
};

export default App;