shelving
Version:
Toolkit for using data in JavaScript.
12 lines (11 loc) • 646 B
TypeScript
import type { ReactElement } from "react";
import type { PossibleMeta } from "../util/index.js";
import type { ChildProps } from "../util/props.js";
export interface PageProps extends PossibleMeta, ChildProps {
}
/**
* Component for a single page (or screen) within an app.
* - Sets the document title and other head metadata via `<Head>`, which emits hoistable tags inline; React 19 hoists each one into the document `<head>`. `<base>` is not emitted here — it lives in the `<HTML>` shell's `<Head>`.
* - Also updates `window.history` to match the page URL.
*/
export declare function Page({ children, ...meta }: PageProps): ReactElement;