@helpwave/hightide
Version:
helpwave's component and theming library
19 lines • 519 B
JavaScript
// src/components/user-input/Label.tsx
import { jsx } from "react/jsx-runtime";
var styleMapping = {
labelSmall: "textstyle-label-sm",
labelMedium: "textstyle-label-md",
labelBig: "textstyle-label-lg"
};
var Label = ({
children,
name,
labelType = "labelSmall",
...props
}) => {
return /* @__PURE__ */ jsx("label", { ...props, children: children ? children : /* @__PURE__ */ jsx("span", { className: styleMapping[labelType], children: name }) });
};
export {
Label
};
//# sourceMappingURL=Label.mjs.map