pub struct EuvDocLayoutProps {
pub toc_title: &'static str,
pub toc_items: &'static [EuvTocItem],
pub prev_label: &'static str,
pub next_label: &'static str,
pub prev: Option<EuvPaginationItem>,
pub next: Option<EuvPaginationItem>,
pub footer: &'static str,
pub footer_link: &'static str,
pub footer_items: &'static [EuvFooterItem],
pub toc_active: Signal<String>,
}Expand description
Props for the euv_doc_layout component.
Fields§
§toc_title: &'static strThe right-column table-of-contents title (e.g. "On this page").
toc_items: &'static [EuvTocItem]The right-column table-of-contents items (column hidden when empty).
prev_label: &'static strThe “previous page” link label (e.g. "Previous").
next_label: &'static strThe “next page” link label (e.g. "Next").
prev: Option<EuvPaginationItem>The previous page entry (skipped when None).
next: Option<EuvPaginationItem>The next page entry (skipped when None).
The footer text under the pagination (skipped when empty).
The destination the footer text points at.
An empty link renders the text as plain, unlinked text.
The items of the footer under the pagination (skipped when empty).
A filing notice is the canonical use: the number as plain text, the official badge as an icon, and the destination pointing at the authority’s own query page.
toc_active: Signal<String>The href of the TOC entry the reader is currently at.
Passed through to euv_toc unchanged so a caller that drives
scroll highlighting writes one signal and the whole right column
follows. Empty means no entry is highlighted.