label | string | Yes | — | Visible label and accessible name. |
|---|
hint | string | No | — | Supporting field guidance, associated with the control. |
|---|
error | string | No | — | Error message. Replaces hint text and marks the field invalid. |
|---|
options | readonly SelectOption[] | Yes | — | Ordered options with unique non-empty values, labels and optional disabled states. |
|---|
size | ComponentSize | No | "medium" | Visual size: small, medium or large. |
|---|
appearance | "text" | "field" | No | "field" | Bordered field treatment or borderless text trigger. |
|---|
font | "body" | "mono" | No | "body" | Font role shared by the trigger and portalled options. |
|---|
hideLabel | boolean | No | false | Visually hide the label while preserving its accessible association. |
|---|
value | string | No | — | Controlled selected option value; an empty string clears selection. |
|---|
defaultValue | string | No | — | Initial selected option value when uncontrolled. |
|---|
onValueChange | ((value: string) => void) | No | — | Called with the selected option value. |
|---|
placeholder | string | No | — | Text shown when the control has no value. |
|---|
disabled | boolean | No | — | Disables the native control. |
|---|
required | boolean | No | — | Require a selection for the owning native form. |
|---|
name | string | No | — | Name of the hidden native form control used to submit the selection. |
|---|
form | string | No | — | ID of the form receiving the hidden native selection control. |
|---|
onKeyDown | KeyboardEventHandler<HTMLButtonElement> | No | — | Native key handler. Prevent default to skip built-in keyboard behavior. |
|---|
onPointerDown | PointerEventHandler<HTMLButtonElement> | No | — | Native pointer-down handler. Prevent default to skip built-in pointer behavior. |
|---|
aria-invalid | boolean | "true" | "false" | "grammar" | "spelling" | No | — | Marks the native control invalid for assistive technology. |
|---|
aria-describedby | string | No | — | IDs of additional descriptive elements; field components merge these with their hint or error ID. |
|---|
className | string | No | "" | Additional classes applied to the component’s documented root or control. |
|---|
id | string | No | — | Native control ID. Generated when omitted; the visible label and supporting text use this association. |
|---|
ref | Ref<HTMLButtonElement> | No | — | Ref to the component’s documented DOM element. |
|---|