Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Variable SelectWidgetConst

    SelectWidget: {
        Root: <T extends string>(props: SelectWidgetRootProps<T>) => Element;
    } = ...

    A select as compound parts, the chosen item kept through @practic/persist: Root stores it and takes the options; the other parts are the styled Select ones (Trigger, Value, Icon, Portal, Positioner, Popup, List, Item, ItemIndicator, ItemText, …).

    Type Declaration

    <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>