UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

21 lines 532 B
// src/components/user-action/Label.tsx import clsx from "clsx"; 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", className, ...props }) => { return /* @__PURE__ */ jsx("label", { ...props, className: clsx(styleMapping[labelType], className), children: children ? children : name }); }; export { Label }; //# sourceMappingURL=Label.mjs.map