Skip to main content
Version: Next

SelectProps

Home > @backstage/ui > SelectProps

Signature:

export interface SelectProps<T extends 'single' | 'multiple'> extends AriaSelectProps<Option, T>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'> 

Extends: AriaSelectProps<Option, T>, Omit<FieldLabelProps, 'htmlFor' | 'id' | 'className'>

Properties

Property

Modifiers

Type

Description

icon?

ReactNode

(Optional) An icon to render before the input

options?

Array<Option>

(Optional) The options of the select field

searchable?

boolean

(Optional) Enable search/filter functionality in the dropdown

searchPlaceholder?

string

(Optional) placeholder text for the search input only used when searchable is true

selectionMode?

T

(Optional) Selection mode, single or multiple

size?

'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>

(Optional) The size of the select field