Interface GroupProps<Option, IsMulti, Group>

Type Parameters

  • Option = unknown

  • IsMulti extends boolean = boolean

  • Group extends GroupBase<Option> = GroupBase<Option>

Hierarchy

Properties

Heading: ComponentType<GroupHeadingProps<Option, IsMulti, Group>>

Component to wrap the label, receives headingProps.

children: ReactNode

The children to be rendered.

className?: string
clearValue: (() => void)

Type declaration

    • (): void
    • Returns void

cx: CX
data: Group

The data of the group.

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.

getValue: (() => <internal>.Options<Option>)

Type declaration

hasValue: boolean
headingProps: ForwardedHeadingProps<Option, Group>

Props to pass to Heading.

innerProps: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>

Props to be passed to the group element.

isMulti: boolean
isRtl: boolean
label: ReactNode

Label to be displayed in the heading component.

options: <internal>.Options<Option>
selectOption: ((newValue: Option) => void)

Type declaration

    • (newValue: Option): void
    • Parameters

      • newValue: Option

      Returns void

selectProps: <internal>.Props<Option, IsMulti, Group>
setValue: ((newValue: OnChangeValue<Option, IsMulti>, action: SetValueAction, option?: Option) => void)

Type declaration

Generated using TypeDoc