@axa-fr/react-toolkit-badge
v3.0.2
Published
1. [Installation](#installation) 2. [Simple badge](#simple-badge) 3. [With Icon](#with-icon)
Downloads
539
Maintainers
Keywords
Readme
@axa-fr/react-toolkit-badge
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;