View as Markdown

API reference: @salmonui/dropdowns/combobox

ComboboxFieldPropsinterface

import type { ComboboxFieldProps } from '@salmonui/dropdowns/combobox';
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.

ComboboxFieldProps members (4)
NameSignatureDescription
labeloptionalreadonly label?: ReactNode;

Visible label above the control; names it through aria-labelledby (an explicit aria-labelledby prop wins).

descriptionoptionalreadonly description?: ReactNode;

Help text below the control, referenced by aria-describedby.

errorMessageoptionalreadonly errorMessage?: ReactNode;

Error text below the control, shown while invalid.

invalidoptionalreadonly invalid?: boolean | undefined;

Marks the control invalid: aria-invalid, data-invalid and the visible errorMessage.