fedrick-fp-custom-components
Version:
6 lines (5 loc) • 389 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import './MyLabel.css';
export const MyLabel = ({ label, size = 'normal', allCaps = true, color = 'text-primary', fontColor = 'red', backgroundColor = 'transparent', }) => {
return (_jsx("span", { className: `${size} ${color} label`, style: { color: fontColor, backgroundColor }, children: allCaps ? label.toUpperCase() : label }));
};