Select

    Select

    Basic select

    Basic select — see the example below.

    Theme

    Align item with trigger vs popper

    Analogous to Radix/shadcn: position="item-aligned" after opening shifts the panel so that the row with the current value (or highlighted item) is at the same height as the trigger; on a different choice the position is recomputed. position="popper" does not enforce this — it behaves like a standard floating menu. Both variants start with the initial value in the middle of the list (1–10).

    item-aligned (default)

    popper

    Panel alignment (align)

    The align prop on Select.Popover : start (default, matches bottom-start ), center , end . Here all examples use position="popper" so only the horizontal difference is visible. With a custom floating ending in -start / -end, align is not applied.

    align="start" (default)

    align="center"

    align="end"

    Groups

    Splitting items using Select.Group and GroupLabel (sections in the list).

    Controlled value (bind:value)

    Controlled value (bind:value) — see the example below.

    Value: banana

    Metadata

    Source: meta.generated.json (see npm run generate)

    File base/select/meta.generated.json not found or path not allowed.