<VersionSelect>
ComponentA component to handle selecting a version of docs to navigate to.
<NextRouterDebugger><VersionSelectbasePath={'sentinel/intro'}versions={[{ name: 'latest', label: 'v1.11.x (latest)' },{ name: 'v1.10.x', label: 'v1.10.x' },{ name: 'v1.9.x', label: 'v1.9.x' },{ name: 'v1.8.x', label: 'v1.8.x' },{ name: 'v1.7.x', label: 'v1.7.x' },]}/></NextRouterDebugger>
Name | Description |
---|---|
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 |