UNPKG

@shakthillc/components

Version:

React generic components for shakthi products

26 lines (22 loc) 552 B
import React from "react"; import style from "./TableBadge.module.css"; import PropTypes from "prop-types"; var TableBadge = function TableBadge(_ref) { var text = _ref.text, bgcolor = _ref.bgcolor, color = _ref.color; return React.createElement( "div", { style: { background: bgcolor, color: color }, className: style['TableBadge'] }, text ); }; export default TableBadge; TableBadge.defaultProps = { color: "ffd4d1", text: "xxxx" }; TableBadge.propTypes = { text: PropTypes.string, color: PropTypes.string };