interface SelectProps {
    className?: string;
    defaultValue?: string;
    errorText?: string;
    initialScrollValue?: null | string;
    isDisabled?: boolean;
    isRequired?: boolean;
    label?: string;
    labelWeight?: "bold" | "regular";
    name?: string;
    onChange?: ((value, name?) => void);
    placeholder?: string;
    postfixText?: string;
    selectOptionValues: OptionValue[];
    value?: null | string;
}

Properties

className?: string

Custom class to give the html component

defaultValue?: string

Select default value (value to select when value is not defined)

errorText?: string

Error text

initialScrollValue?: null | string

When opening the pulldown, which value in the list to scroll to (top of the list by default)

isDisabled?: boolean

Is select input disabled

isRequired?: boolean

Shows red required mark

label?: string

Label of the input field

labelWeight?: "bold" | "regular"

Configurable label weight

name?: string

Input select name

onChange?: ((value, name?) => void)

On Select change callback

Type declaration

    • (value, name?): void
    • On Select change callback

      Parameters

      • value: null | string
      • Optional name: string

      Returns void

placeholder?: string

Placeholder

postfixText?: string

Text to place after the component

selectOptionValues: OptionValue[]

Select Option values

value?: null | string

Input select value

Generated using TypeDoc