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

2.3.0 • Public • Published

@axa-fr/react-toolkit-badge

  1. Installation
  2. Simple badge
  3. With Icon

Installation

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

Simple badge

Import

import Badge from '@axa-fr/react-toolkit-badge';
import '@axa-fr/react-toolkit-badge/dist/af-badge.css';

Use

const SimpleBadge = () => <Badge classModifier="success">Lorem ipsum</Badge>;
export default SimpleBadge;

With Icon

Import

import Badge from '@axa-fr/react-toolkit-badge';
import '@axa-fr/react-toolkit-badge/dist/af-badge.css';

Use

const WithIconBadge = () => (
  <Badge classModifier="error">
    <i className="glyphicon glyphicon-bell" />
  </Badge>
);
export default WithIconBadge;

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

66

Version

2.3.0

License

MIT

Unpacked Size

13.4 kB

Total Files

25

Last publish

Collaborators

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