Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

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

razor
<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.

Code

Pages.razor
<PrevNext PreviousHref="docs/components/pagination" PreviousTitle="Pagination"
          NextHref="docs/components/stepper" NextTitle="Stepper" Grow />

Mode support

What works in each mode, PrevNext
FeatureOffStaticLive
EverythingYesYesYes

Off: JavaScript disabled. Static: a static SSR page with IzzyBlazor's script. Live: an interactive page (Server, WebAssembly or Auto).

Accessibility

  • It renders a nav named "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 PreviousTitle or NextTitle.
  • With neither link it renders nothing, so there's no empty landmark.

Parameters

PrevNext parameters
PropTypeDefault
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"

See also