Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuProps<Option, IsMulti, Group>

Type parameters

Hierarchy

Index

Properties

children: ReactNode

The children to be rendered.

className?: string
cx: CX
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>
innerRef: (instance: null | HTMLDivElement) => void

Type declaration

    • (instance: null | HTMLDivElement): void
    • Reference to the internal element, consumed by the MenuPlacer component

      Parameters

      • instance: null | HTMLDivElement

      Returns void

isLoading: boolean
isMulti: boolean
isRtl: boolean
maxMenuHeight: number

Set the maximum height of the menu.

menuPlacement: MenuPlacement

Set whether the menu should be at the top, at the bottom. The auto options sets it to bottom.

menuPosition: MenuPosition

The CSS position value of the menu, when "fixed" extra layout management is required

menuShouldScrollIntoView: boolean

Set whether the page should scroll to show the menu.

minMenuHeight: number

Set the minimum height of the menu.

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

Methods

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

Generated using TypeDoc