UNPKG

@crossed/primitive

Version:

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

12 lines (11 loc) 370 B
import { jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import { useContext } from "./context"; const createButtonText = (StyledText) => forwardRef((props, ref) => { const context = useContext(); return /* @__PURE__ */ jsx(StyledText, { id: context.id, ...props, ref }); }); export { createButtonText }; //# sourceMappingURL=ButtonText.js.map