Const<SelectWidget.Root items={fruits} data-key='practic_app_fruit' data-attr='value'>
<Select.Trigger aria-label='Fruit'>
<Select.Value placeholder='Pick a fruit' />
<Select.Icon>▾</Select.Icon>
</Select.Trigger>
<Select.Portal>
<Select.Positioner>
<Select.Popup>
<Select.List>
{fruits.map((fruit) => (
<Select.Item key={fruit} value={fruit}>
<Select.ItemText>{fruit}</Select.ItemText>
</Select.Item>
))}
</Select.List>
</Select.Popup>
</Select.Positioner>
</Select.Portal>
</SelectWidget.Root>
A select as compound parts, the chosen item kept through
@practic/persist:Rootstores it and takes the options; the other parts are the styledSelectones (Trigger,Value,Icon,Portal,Positioner,Popup,List,Item,ItemIndicator,ItemText, …).