'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var HelpIcon = require('./HelpIcon-CIkKt2uy.js');
var primitives_Label = require('./primitives/Label.js');
var utils = require('./utils-BhM0B89p.js');

const Label = React.forwardRef(
  ({ required, helpIconProps, className, children, ...otherProps }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(primitives_Label.Label, { ref, className: utils.cn(className), ...otherProps, children: [
    children,
    required && /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "text-destructive", children: "*" }),
    helpIconProps && /* @__PURE__ */ jsxRuntime.jsx(HelpIcon.HelpIcon, { ...helpIconProps })
  ] })
);
Label.displayName = "Label";

exports.Label = Label;
//# sourceMappingURL=Label-Dt7K54Ly.js.map
