Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuListProps<Option, IsMulti, Group>

Type parameters

Hierarchy

Index

Properties

children: ReactNode

The children to be rendered.

className?: string
cx: CX
focusedOption: Option

The currently focused option

getStyles: GetStyles<Option, IsMulti, Group>

Get the styles of a particular part of the select. Pass in the name of the property as the first argument, and the current props as the second argument. See the styles object for the properties available.

hasValue: boolean
innerProps: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>

Props to be passed to the menu-list wrapper.

innerRef: (instance: null | HTMLDivElement) => void

Type declaration

    • (instance: null | HTMLDivElement): void
    • Inner ref to DOM ReactNode

      Parameters

      • instance: null | HTMLDivElement

      Returns void

isMulti: boolean
isRtl: boolean
maxHeight: number

Set the max height of the Menu component

options: OptionsOrGroups<Option, Group>
selectProps: <internal>.Props<Option, IsMulti, Group>

Methods

  • clearValue(): void
  • selectOption(newValue: Option): void

Generated using TypeDoc