SelectMenu is a fully custom, Radix-based select component designed for app-like experiences (e.g. webviews in native apps). Unlike the native Select, it renders an in-page dropdown instead of delegating to the OS picker.
It uses the modern appearance by default with support for white and grey themes, three sizes (sm, md, lg), and an error state.
<SelectMenutheme="white"defaultValue="banana"><SelectMenu.Triggerplaceholder="Pick a fruit"aria-label="Fruit"/><SelectMenu.Content><SelectMenu.Itemvalue="apple">Apple</SelectMenu.Item><SelectMenu.Itemvalue="banana">Banana</SelectMenu.Item><SelectMenu.Itemvalue="cherry">Cherry</SelectMenu.Item></SelectMenu.Content></SelectMenu>
With groups
<SelectMenutheme="white"><SelectMenu.Triggerplaceholder="Pick a food"aria-label="Food"/><SelectMenu.Content><SelectMenu.Group><SelectMenu.Label>Fruits</SelectMenu.Label><SelectMenu.Itemvalue="apple">Apple</SelectMenu.Item><SelectMenu.Itemvalue="banana">Banana</SelectMenu.Item></SelectMenu.Group><SelectMenu.Separator/><SelectMenu.Group><SelectMenu.Label>Vegetables</SelectMenu.Label><SelectMenu.Itemvalue="carrot">Carrot</SelectMenu.Item><SelectMenu.Itemvalue="broccoli">Broccoli</SelectMenu.Item></SelectMenu.Group></SelectMenu.Content></SelectMenu>