UNPKG

jc-custom-components

Version:

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

9 lines (8 loc) 390 B
import { jsx as _jsx } from "react/jsx-runtime"; import './MyLabel.css'; export const MyLabel = ({ label, size = 'nomal', allCaps = false, color = 'text-primary', fontColor }) => { return (_jsx("span", { className: `${size} ${color} label`, style: { color: fontColor || undefined, textTransform: allCaps ? 'uppercase' : 'none' }, children: label })); };