shelving
Version:
Toolkit for using data in JavaScript.
11 lines (10 loc) • 593 B
TypeScript
import type { ReactNode } from "react";
import { type DirectoryElementProps } from "../../util/element.js";
import type { AbsolutePath } from "../../util/path.js";
interface DirectoryPageProps extends DirectoryElementProps {
/** Site-root-relative path of this page — threaded down so child cards build correct hrefs. */
readonly path: AbsolutePath;
}
/** Page renderer for a `tree-directory` element — shows title, content, and child cards. */
export declare function DirectoryPage({ path, title, name, description, content, children }: DirectoryPageProps): ReactNode;
export {};