import { jsxs, jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { H as HelpIcon } from './HelpIcon-Cm3ZgoCx.js';
import { Label as Label$1 } from './primitives/Label.js';
import { c as cn } from './utils-BJnb9o5c.js';

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

export { Label as L };
//# sourceMappingURL=Label-mrNM2drW.js.map
