{"version":"1.0","type":"rich","title":"react menu","description":"This example demonstrates a simple React dropdown menu for selecting a pet, with the chosen option displayed as the selected value. The app uses `useState` to manage the selected pet’s value and passes it to a reusable `Dropdown` component, which renders a native `<select>` element. The component receives `options`, `idName`, `selectedValue`, and an `onValueChange` callback, updating the state when the user changes the selection. Built with React 18 and `createRoot`, the menu lists five pets, defaulting to “cat,” and highlights the active option in the dropdown.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5420fe67f67843c58a0a49b68c71a194?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}