UNPKG

@crossed/ui

Version:

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

20 lines (19 loc) 480 B
import { jsx } from "react/jsx-runtime"; import { composeStyles, createStyles } from "@crossed/styled"; import { YBox } from "./YBox"; const useCenter = createStyles(() => ({ root: { base: { justifyContent: "center", alignItems: "center" } } })); const Center = ({ style, ...props }) => { return /* @__PURE__ */ jsx(YBox, { ...props, style: composeStyles(useCenter.root, style) }); }; export { Center, useCenter }; //# sourceMappingURL=Center.js.map