API reference: @salmonui/dropdowns/select
SelectFieldPropsinterface
import type { SelectFieldProps } from '@salmonui/dropdowns/select';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.
| Name | Signature | Description |
|---|---|---|
labeloptional | readonly label?: ReactNode; | Visible label above the control; names it through |
descriptionoptional | readonly description?: ReactNode; | Help text below the control, referenced by |
errorMessageoptional | readonly errorMessage?: ReactNode; | Error text below the control, shown while |
invalidoptional | readonly invalid?: boolean | undefined; | Marks the control invalid: |