@green-id/meexr-badge
v1.0.38
Published
Ce package permet d'intégrer un badge de notation environnementale dans vos projets React.
Downloads
18
Maintainers
Readme
React Website Carbon Badge
Ce package permet d'intégrer un badge de notation environnementale dans vos projets React.
Installation
npm install meexr-badge
Utilisation
Dans votre composant React, importez et utilisez WebsiteCarbonBadge
comme suit :
import React from 'react';
import { WebsiteCarbonBadge } from 'votre-nom-de-package';
class MyComponent extends React.Component {
render() {
return <WebsiteCarbonBadge co2="0.12" percentage="89" />;
}
}