UNPKG

@bedrock-layout/reel

Version:
22 lines (21 loc) 592 B
import { getSafeGutter as m, getPaddingAttributes as p, createAttributeString as d } from "@bedrock-layout/spacing-constants"; import { forwardRefWithAs as g } from "@bedrock-layout/type-utils"; import l from "react"; const y = g(function({ as: t = "div", snapType: e, gap: r, style: o = {}, padding: a, ...i }, n) { const s = m(r), c = p(a), f = [ d("snapType", e), ...c ].filter(Boolean).join(" "); return /* @__PURE__ */ l.createElement( t, { ref: n, "data-br-reel": f, style: { "--gap": s, ...o }, ...i } ); }); export { y as Reel };