PublicationIndexModule
On this page
Exports of publication.components.index.
import type { PublicationIndexModule } from "ardo/ui"
type PublicationIndexModule = {
default: ComponentType<PublicationIndexProps>;
meta?: (args: PublicationIndexMetaArgs) => ArdoMetaDescriptor[];
/**
* Page data that the root reads with `useArdoPage().frontmatter`, as it reads a post's
* frontmatter. Ardo calls it when it renders the route, on the server and when the page
* hydrates, like `meta`. Without it, the page has no frontmatter.
*/
frontmatter?: (args: PublicationIndexFrontmatterArgs) => Record<string, unknown>;
};
Properties
| Name | Type | Required | Description |
|---|---|---|---|
default | ComponentType<PublicationIndexProps> | Yes | |
meta | (args: PublicationIndexMetaArgs) => ArdoMetaDescriptor[] | No | |
frontmatter | (args: PublicationIndexFrontmatterArgs) => Record<string, unknown> | No | Page data that the root reads with useArdoPage().frontmatter, as it reads a post'sfrontmatter. Ardo calls it when it renders the route, on the server and when the page hydrates, like meta. Without it, the page has no frontmatter. |