View component to create content that changes based on the selected view in a multi-view dropdown. This is particularly useful for showing code examples or documentation specific to different programming languages or frameworks.
This content is only visible when JavaScript is selected.
Example
JavaScript and Python views
Table of contents behavior
The table of contents automatically updates to show only the headings for the currently selected view. When you switch between views using the multi-view dropdown, the table of contents refreshes to display the relevant headings for that view. If you have different heading structures in each view, users will only see the headings that are relevant to their selected language or framework.Properties
The title that identifies this view. Must match one of the options in the multi-view dropdown.
A Font Awesome icon, Lucide icon, URL to an icon, or relative path to an icon.
For Font Awesome icons only: One of
regular, solid, light, thin, sharp-solid, duotone, brands.