SelectOptionProps

Interface

The SelectOption component props

Properties

active optional

active: boolean

If true, the dropdown item will be highlighted as active.

disabled optional

disabled: boolean

If true, the component will be disabled.

divider optional

divider: boolean

If true, the component will be displayed as a horizontal divider,div element will be used by default and onClick event will be ignored in this case.

header: boolean

If true, the component will be displayed as a static header,h6 element will be used by default and onClick event will be ignored in this case.

href optional

href: string

Sets value for the native href property of the \<a element. If this property is set, the tag property will be forced to use a.

onClick optional

onClick: function

Fire callback when the root element is clicked.

Type declaration
    (eventMouseEvent<anyMouseEvent>): void
    Parameters
    • eventMouseEvent<anyMouseEvent>
    Returns 
    void

tag optional

tag: ElementType<any>

Custom html element to be used as a button.

toggle optional

toggle: boolean

If true, the dropdown item will toggle the parent dropdown automatically when clicked.

value optional

value: string | number

The option value.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.