@axa-fr/react-toolkit-icon
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Icon

Get started

npm i "@axa-fr/react-toolkit-icon"

Props

  • icon: string - Name of the icon contained in the icons.svg file.
  • basePath?: string - Default is root ("/"), used to indicate the path where your icons.svg file is.

Example

This one will display the icon named "plus" inside of the /icons.svg file

import React from 'react';
import Icon from '@axa-fr/react-toolkit-icon';

const PlusIcon => () => (
    <Icon icon="plus"/>
)

Readme

Keywords

none

Package Sidebar

Install

npm i @axa-fr/react-toolkit-icon

Weekly Downloads

99

Version

3.0.2

License

MIT

Unpacked Size

16.6 kB

Total Files

25

Last publish

Collaborators

  • johnathan.meunier
  • martinweb
  • fcornaire
  • guillaume.chervet.axa
  • samuel-gomez
  • antoine.blancke
  • arnaudforaison