tako-custom-components
Version:
install ```bash npm i tako-custom-components ```
9 lines (8 loc) • 367 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import './MyLabel.css';
export const MyLabel = ({ label, size = 'normal', allCaps = false, color, fontColor = '#000' }) => {
return (_jsx("span", { className: `${size} ${color}`, style: {
color: fontColor,
textTransform: allCaps ? 'uppercase' : undefined
}, children: label }));
};