# SelectFieldProps (@salmonui/dropdowns/select)

> The SelectFieldProps interface of @salmonui/dropdowns/select: Field parts of Select and Combobox (the TextField names): a visible label, a description and an error message around the control, wired with aria-labelledby / aria-describedby / aria-errormessage. Without any of them the markup is the bare control.

Canonical: https://salmonui.dev/docs/reference/dropdowns/select/SelectFieldProps

```ts
import type { SelectFieldProps } from '@salmonui/dropdowns/select';
```

Entry index: https://salmonui.dev/docs/reference/dropdowns/select (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/dropdowns/select.md).

## Reference

Kind: interface

```ts
interface DropdownFieldProps {
    readonly label?: ReactNode;
    readonly description?: ReactNode;
    readonly errorMessage?: ReactNode;
    readonly invalid?: boolean | undefined;
}
```

Field parts of `Select` and `Combobox` (the `TextField` names): a visible
label, a description and an error message around the control, wired with
`aria-labelledby` / `aria-describedby` / `aria-errormessage`. Without any
of them the markup is the bare control.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label?: ReactNode;` | optional | Visible label above the control; names it through `aria-labelledby` (an explicit `aria-labelledby` prop wins). |
| `description` | `readonly description?: ReactNode;` | optional | Help text below the control, referenced by `aria-describedby`. |
| `errorMessage` | `readonly errorMessage?: ReactNode;` | optional | Error text below the control, shown while `invalid`. |
| `invalid` | `readonly invalid?: boolean \| undefined;` | optional | Marks the control invalid: `aria-invalid`, `data-invalid` and the visible `errorMessage`. |
