shelving
Version:
Toolkit for using data in JavaScript.
11 lines (10 loc) • 498 B
TypeScript
import type { ReactElement } from "react";
import type { OptionalChildProps } from "../util/props.js";
export interface CenteredLayoutProps extends OptionalChildProps {
fullWidth?: boolean;
}
/**
* Layout that puts the content in the center of the screen with no header/footer and a narrow max-width.
* - Used for e.g. login/register/error/form pages where the content is the only focus.
*/
export declare function CenteredLayout({ children, fullWidth }: CenteredLayoutProps): ReactElement;