Const<ComboboxWidget.Root items={fruits} data-key='practic_app_fruit' data-attr='value'>
<Combobox.Input aria-label='Fruit' />
<Combobox.Portal>
<Combobox.Positioner sideOffset={4}>
<Combobox.Popup>
<Combobox.Empty>No fruit matches.</Combobox.Empty>
<Combobox.List>
{(fruit: string) => <Combobox.Item key={fruit} value={fruit}>{fruit}</Combobox.Item>}
</Combobox.List>
</Combobox.Popup>
</Combobox.Positioner>
</Combobox.Portal>
</ComboboxWidget.Root>
A combobox as compound parts, the selected item kept through
@practic/persist:Rootstores it and takes the items; the other parts are the styledComboboxones (Input,Portal,Positioner,Popup,Empty,List,Item,ItemIndicator, …).