SelectProps
Home > @backstage/canon
> SelectProps
Signature:
export interface SelectProps
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
string |
(Optional) The class name of the select field | ||
string |
(Optional) The default value of the select field, if nothing has been selected yet | ||
string |
(Optional) The description of the select field | ||
boolean |
(Optional) Whether the select field should ignore user input | ||
string |
(Optional) The error message of the select field | ||
string |
(Optional) The label of the select field | ||
string |
The name of the select field | ||
(event: FocusEvent<HTMLSelectElement>) => void |
(Optional) onBlur handler for form integration | ||
(event: ChangeEvent<HTMLSelectElement>) => void |
(Optional) onChange handler for form integration | ||
(open: boolean) => void |
(Optional) Callbak that is called when the select field is opened or closed | ||
(value: string) => void |
(Optional) Callback that is called when the value of the select field changes | ||
Array<{ value: string; label: string; disabled?: boolean; }> |
(Optional) The options of the select field | ||
string |
(Optional) A placeholder text to show if nothing has been selected and there's no default value | ||
boolean |
(Optional) Whether the select field is required | ||
'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>> |
(Optional) The size of the select field | ||
React.CSSProperties |
(Optional) The style of the select field | ||
string |
(Optional) The current value of the select field |