UNPKG

@payfit/unity-components

Version:

25 lines (24 loc) 662 B
import { gridItem as e } from "./Grid.variants.js"; import { forwardRef as t } from "react"; import { jsx as n } from "react/jsx-runtime"; //#region src/components/grid/GridItem.tsx var r = t(({ asElement: t = "div", area: r, children: i, className: a, colSpan: o, colStart: s, colEnd: c, justify: l, align: u, ...d }, f) => { let p = Object.fromEntries([["gridArea", r]].filter(([e, t]) => !!t)); return /* @__PURE__ */ n(t, { ref: f, className: e({ colSpan: o, colStart: s, colEnd: c, justify: l, align: u, className: a }), style: p, ...d, children: i }); }); r.displayName = "GridItem"; //#endregion export { r as GridItem };