UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

11 lines (10 loc) 570 B
import type { ReactNode } from "react"; import type { FileElementProps } from "../../util/element.js"; import type { AbsolutePath } from "../../util/path.js"; interface FilePageProps extends FileElementProps { /** Site-root-relative path of this page — threaded down so child cards build correct hrefs. */ readonly path: AbsolutePath; } /** Page renderer for a `tree-file` element — shows title, content, and child code symbols. */ export declare function FilePage({ path, title, name, description, content, children }: FilePageProps): ReactNode; export {};