import clsx from "clsx"; import React from "react"; import "./page.scss"; export type PageProps = React.PropsWithChildren<{ /** * Sets the "container-type" CSS attribute. Setting this to "normal" might fix * problems regarding sizing of children. */ containerType?: "inline-size" | "size" | "normal"; /** * Whether to use `height 100%;` (over `min-height: 100%;`). * Warning: setting this may break vertical overflow scrolling with sidebar * navigation. */ fullHeight?: boolean; /** Vertical alignment of page content. */ valign?: "start" | "middle"; /** Whether to apply padding to the page. */ pad?: boolean | "h" | "v"; }>; /** * Provides the base theme for a page. */ export const Page: React.FC = ({ children, containerType = "inline-size", fullHeight = false, pad = false, valign, ...props }) => (
{children}
);