fb-custom-components
Version:
12 lines (11 loc) • 520 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import "./MyLabel.css";
/**
* !Todas son opcionales
* allCaps: Boolean,
* color: "text-primary" | "text-secondary" | "text-tertiary",
* fontColor?: string, texto del span
*/
export const MyLabel = ({ label, size = "normal", allCaps = false, color, fontColor, backgroundColor = "transparent", }) => {
return (_jsx("span", { className: `${size} ${color} label`, style: { color: fontColor, backgroundColor }, children: allCaps ? label.toUpperCase() : label }));
};