PrevNext
Links to the pages before and after.
An interactive page: C# runs over a Blazor Server connection.
Previous and next links for the end of an article: two cards with the page titles, side by side from 32rem of width up (the previous one at the start, the next at the end), stacked below. Plain links with rel="prev" and rel="next", so it needs no script.
Usage
<PrevNext PreviousHref="docs/install" PreviousTitle="Install"
NextHref="docs/theming" NextTitle="Theming" />Previous and next pages
Use PreviousHref and NextHref, each with its page's title, to end an article; leave out a side on the first or last page.
Preview
Code
<PrevNext PreviousHref="docs/components/pagination" PreviousTitle="Pagination"
NextHref="docs/components/stepper" NextTitle="Stepper" Grow />Mode support
| Feature | Off | Static | Live |
|---|---|---|---|
| Everything | Yes | Yes | Yes |
Off: JavaScript disabled. Static: a static SSR page with IzzyBlazor's script. Live: an interactive page (Server, WebAssembly or Auto).
Accessibility
- It renders a
navnamed "More pages" (Label) holding plain links. - Each link's name is its direction and the page title, as in "Next Theming"; a link needs its
PreviousTitleorNextTitle. - With neither link it renders nothing, so there's no empty landmark.
Parameters
| Prop | Type | Default |
|---|---|---|
PreviousHrefThe previous page's URL. | string? | |
PreviousTitleThe previous page's title. | string? | |
NextHrefThe next page's URL. | string? | |
NextTitleThe next page's title. | string? | |
PreviousTextThe small text above the previous page's title. | string? | "Previous" |
NextTextThe small text above the next page's title. | string? | "Next" |
LabelThe navigation landmark's name. | string? | "More pages" |
Plus 16 item props and 4 common props.
Full APISee also
- Pagination: page links that keep the rest of the URL.
- Breadcrumb: the path to the current page.
- OnThisPage: the page's sections, listed on the server.