PrevNextNav

Previous/Next page navigation links — new in v0.3.0.

PrevNextNav is new in v0.3.0. It renders a pair of bordered navigation links for moving between doc pages. Perfect for adding at the bottom of any page.

Installation

bash
shellui add prev-next-nav

Usage

Basic

<PrevNextNav
    PrevLabel="Installation"
    PrevHref="/docs/v0.3/installation"
    NextLabel="Components"
    NextHref="/docs/v0.3/components" />

Next only

Omit PrevHref to show only the Next link with an empty placeholder on the left:

<PrevNextNav
    NextLabel="Quick Start"
    NextHref="/docs/v0.3/quickstart" />

Prev only

<PrevNextNav
    PrevLabel="Quick Start"
    PrevHref="/docs/v0.3/quickstart" />

In a docs page layout

@* At the bottom of any .razor or .mdx page *@
<PrevNextNav
    PrevLabel="@prevPage.Title"
    PrevHref="@prevPage.Href"
    NextLabel="@nextPage.Title"
    NextHref="@nextPage.Href" />

@code {
    private (string Title, string Href) prevPage = ("Installation", "/docs/v0.3/installation");
    private (string Title, string Href) nextPage = ("Components", "/docs/v0.3/components");
}

API Reference

Parameter Type Default Description
PrevLabel string? null Label for the previous link
PrevHref string? null URL for the previous page. Omit to hide prev link.
NextLabel string? null Label for the next link
NextHref string? null URL for the next page. Omit to hide next link.
Class string? null Additional CSS classes on the <nav> element

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.