<VersionSelect> Component

A component to handle selecting a version of docs to navigate to.

Note: VersionSelect uses next/router. Interacting with it in this playground will navigate you to non-existant pages.

Share
Code Editor

Where it's used

0.x.x
Loading 0.x.x releases...

Props

NameDescription
versions*
Array
Array of version options
Array members must be of the type below:
versions[x]
object
Object contains nested props, see below:
versions[x].name
string
A version’s programmatic value
versions[x].label
string
A version’s human-friendly display value