Interface SelectProps

Hierarchy

  • SelectProps

Properties

children?: ReactNode
disabled?: boolean

When true, the select will be slightly faded, and cannot be interacted with.

maxValues?: number

With multiple, the maximum number of values that can be selected. When multiple is false or not defined, this is always 1.

This only limits the number of values that can be received by the user. This does not limit the number of values that can be displayed by you.

minValues?: number

With multiple, the minimum number of values that can be selected. When multiple is false or not defined, this is always 1.

This only limits the number of values that can be received by the user. This does not limit the number of values that can be displayed by you.

multiple?: boolean

Set to true to allow multiple selected values

onChange?: ((event) => void)

Type declaration

    • (event): void
    • Called when the user inputs a selection. Receives the entire select change event, which can be used to create new replies, etc.

      Parameters

      Returns void

onChangeMultiple?: ((values, event) => void)

Type declaration

    • (values, event): void
    • Convenience shorthand for onChange, which receives all selected values.

      Parameters

      Returns void

onChangeValue?: ((value, event) => void)

Type declaration

    • (value, event): void
    • Convenience shorthand for onChange, which receives the first selected value.

      Parameters

      Returns void

placeholder?: string

The text shown when no value is selected

value?: string

Sets the currently selected value

values?: string[]

Sets the currently selected values, for use with multiple

Generated using TypeDoc