amotify
Version:
UI Component for React,NextJS,esbuild
2 lines (1 loc) • 419 B
JavaScript
import{b as e,c as n,d as p}from"../chunk-C5N2D3ZX.js";import{jsx as i}from"react/jsx-runtime";import{useState as r}from"react";import{Box as E}from"../atoms";const s=a=>{let o=a,{jsxElement:m=E,size:x="R"}=o,t=p(o,["jsxElement","size"]),[l]=r(()=>({MIN:36,XS:48,S:60,R:72,L:84,XL:100,MAX:120})[x||"R"]);return i(m,n(e({margin:[0,"auto"],width:1},t),{xcss:e({maxWidth:12*l},t.xcss)}))};export{s as Plate,s as default};