UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

13 lines (12 loc) 438 B
import { jsx } from "react/jsx-runtime"; import { useId, useRef, forwardRef } from "react"; import { Provider } from "./context"; const createLabelMain = (StyledRoot) => forwardRef((props, ref) => { const id = useId(); const inputRef = useRef(); return /* @__PURE__ */ jsx(Provider, { id, inputRef, children: /* @__PURE__ */ jsx(StyledRoot, { ...props, ref }) }); }); export { createLabelMain }; //# sourceMappingURL=Label.js.map