{"version":"1.0","type":"rich","title":"Menus with react","description":"This example demonstrates a React-based dropdown menu for selecting a pet, with the current selection displayed as large text. The app uses React’s `useState` hook to manage the selected value and passes it to a custom `Dropdown` component, which renders a native HTML `<select>` element. It maps over an array of pet options, setting the `selected` attribute on the matching option. The component receives `options`, an `id`, and an `onSelectedValueChange` callback, which updates the state on user interaction. The styling is applied via inline CSS in the HTML file.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d73eed7f8a674c299e1e042a7e25f2e2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}