Create multi-view content for different programming languages or frameworks
Use the 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.
<View title="JavaScript" icon="js"> This content is only visible when JavaScript is selected. \```javascript console.log("Hello from JavaScript!"); \```</View><View title="Python" icon="python"> This content is only visible when Python is selected. \```python print("Hello from Python!") \```</View>