Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControlProps<Option, IsMulti, Group>

Type parameters

Hierarchy

Index

Properties

children: ReactNode

Children to render.

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>

The mouse down event and the innerRef to pass down to the controller element.

innerRef: <internal>.Ref<HTMLDivElement>
isDisabled: boolean

Whether the select is disabled.

isFocused: boolean

Whether the select is focused.

isMulti: boolean
isRtl: boolean
menuIsOpen: boolean

Whether the select is expanded.

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

Methods

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

Generated using TypeDoc