Skip to content
duxt

DuxtVersionBanner

The bar telling a reader this version is not the current one.

Shown above the page when the version being read is not the default one.

Usage

<DuxtVersionBanner />

API

No props. Reads useDuxtVersion().

Notes

The visible half of the version problem. canonical and noindex tell a crawler which version to serve; they tell the reader nothing. Someone who arrived on v0.7.0 from a search result, or from a link in an old issue, sees documentation that looks exactly like the current one. Either half alone leaves one audience wrong, so the head tags and this banner ship together.

An upcoming version is told its documentation may still change, and is not told to upgrade — that is the one state that must never be reached by guessing.

Was this page helpful?