useVersion
useVersion provides the current documentation version when multi-version docs are enabled.
- Type:
() => string
Use it to surface the active version in UI or to branch logic for versioned content.
useVersion provides the current documentation version when multi-version docs are enabled.
() => stringUse it to surface the active version in UI or to branch logic for versioned content.