@fellesdatakatalog/icons
v0.8.5
Published
Felles datakatalog UI icons
Downloads
392
Readme
@fellesdatakatalog/icons
Common icon module that provides icons.
Installation
npm i @fellesdatakatalog/icons
Dependencies
- React
Component
React Components are generated by react-svgs
as part of the build step when package is published to NPM.
All SVG files in src/assets/svg
generates a corresponding React component.
Usage
Basic usage
import React, { FC } from 'react';
import SvgIcon from '@fellesdatakatalog/icons';
const Icon1 = () => <SvgIcon name='checkStroke' />;
const App: FC = () => (
<div>
<Icon1 />
</div>
);
export default App;