# Select

One value from a short list. Same shape as Input.

Import from `@a31labs/rax/select`.

## Usage

```tsx
<Field label="Instance size">
  <Select value={size} onValueChange={setSize} items={[{ value: "small", label: "Small, 1 vCPU" }]} />
</Field>
```

## Rules

Props: `value`, `onValueChange`, `items` (`{ value, label }`), `placeholder`, `disabled`, `readOnly`, `name`, `required`, `form`, `container`. `ref`, `id`, `onBlur`, `aria-*` and other native button props go to the trigger, so it works inside Field and with `useBlurValidation`; with `name` the value posts in a native form through a hidden input. Same shape as Input; the popup is a floating layer and opens above dialogs.

Page: https://rax.a31.at/components/select
