@shakthillc/components
Version:
React generic components for shakthi products
24 lines (19 loc) • 486 B
JavaScript
import React from "react";
import style from "./TableBadge.module.css";
import PropTypes from "prop-types";
const TableBadge = ({ text, bgcolor,color }) => {
return (
<div style={{ background: bgcolor,color:color }} className={style['TableBadge']}>
{text}
</div>
);
};
export default TableBadge;
TableBadge.defaultProps = {
color: "ffd4d1",
text: "xxxx"
};
TableBadge.propTypes = {
text: PropTypes.string,
color: PropTypes.string
};