This commit is contained in:
Philippe Torrel
2026-08-07 11:24:07 +02:00
parent 2c47aa98b8
commit 70a9d3ca08
273 changed files with 26737 additions and 38 deletions

View File

@@ -0,0 +1,11 @@
const Badge = (props) => {
const { text = '', variant = 'secondary', color = '' } = props;
return (
<span className={`badge ${!color ? `text-bg-${variant}` : ''} mx-1`} style={{ backgroundColor: color }}>
{text}
</span>
);
// <span className={`badge text-bg-${variant}`}>{text};</span>
};
export default Badge;