{"version":"1.0","type":"rich","title":"Dataviz 9 - Menus","description":"This example demonstrates a simple pet-selection interface built with React. A dropdown menu lets users choose from a list of six animals, including dog, cat, hamster, parrot, spider, and goldfish, with the selected value logged to the console. The code uses React’s `useState` hook to manage the current selection and renders a custom `Dropdown` component, which wraps a native HTML `<select>` element. The `Dropdown` receives options, an ID, and a change handler, updating the state whenever the user picks a new value.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4ebe38a7652843a6921b9b226f6ea08e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}