UNPKG

@bedrock-layout/reel

Version:
2 lines (1 loc) 817 B
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@bedrock-layout/spacing-constants"),require("@bedrock-layout/type-utils"),require("react")):typeof define=="function"&&define.amd?define(["exports","@bedrock-layout/spacing-constants","@bedrock-layout/type-utils","react"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.reel={},e.spacingConstants,e.typeUtils,e.React))})(this,(function(e,t,r,i){"use strict";const n=r.forwardRefWithAs(function({as:o="div",snapType:u,gap:s,style:d={},padding:a,...c},f){const l=t.getSafeGutter(s),p=t.getPaddingAttributes(a),y=[t.createAttributeString("snapType",u),...p].filter(Boolean).join(" ");return i.createElement(o,{ref:f,"data-br-reel":y,style:{"--gap":l,...d},...c})});e.Reel=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));