> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## Versions component

components

The new `<Versions>` component displays different content based on version selection. Users can switch between versions using a dropdown, and the selected version persists in the URL query parameter.

**`Markdown`**

```jsx Markdown
<Versions>
  <Version version="v2.0" title="Version 2.0" default>
    Content for version 2.0.
  </Version>
  <Version version="v1.0" title="Version 1.0">
    Content for version 1.0.
  </Version>
</Versions>
```

This is useful for displaying version-specific documentation, installation instructions, or API examples without duplicating pages.

Read the docs