Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 487 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 487 Bytes

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"/>
)