UNPKG

@payfit/unity-components

Version:

21 lines (20 loc) • 647 B
import { Text as e } from "../../text/Text.js"; import { useDropzoneContext as t } from "../Dropzone.context.js"; import { forwardRef as n } from "react"; import { jsx as r } from "react/jsx-runtime"; //#region src/core/components/dropzone/parts/DropzoneLabel.tsx var i = n(({ children: n, variant: i = "bodyStrong", ...a }, o) => { let { labelId: s } = t(); return /* @__PURE__ */ r(e, { ...a, ref: o, id: s, variant: i, className: "uy:group-data-[disabled=true]:text-content-neutral-disabled", "data-unity-slot": "dropzone.label", children: n }); }); i.displayName = "DropzoneLabel"; //#endregion export { i as DropzoneLabel };