UNPKG

@nordcom/nordstar-view

Version:

Display a dedicated view; (aka page) somewhere in your app.

25 lines (24 loc) 753 B
import "react"; import { jsx as e } from "react/jsx-runtime"; import { forwardRef as n, cn as r } from "@nordcom/nordstar-system"; const f = n( ({ as: t = "article", outerAs: s = "main", withoutWrapper: i, className: c, outerClassName: l, ...o }, m) => { const a = /* @__PURE__ */ e( t, { ref: m, ...o, className: r( "m-3 w-[calc(100%-calc(var(--layout-page-spacing)*2))] max-w-[min(var(--layout-page-width),100vw)]", c ) } ); return i ? a : /* @__PURE__ */ e(s, { className: r("flex w-screen max-w-full flex-col items-center justify-start", l), children: a }); } ); f.displayName = "Nordstar.Layout.View"; export { f as default }; //# sourceMappingURL=view.js.map