Skip to content

Dropdown text is limited to string but should accept React.Node and Dropdown.Text is not available in TypeScript. #4518

@GeoDaz

Description

@GeoDaz

Bug Report

DropdownProps.text?: string. It should accept React.Node

So to avoid it, I tried to use Dropdown.Text, but in Typescript it is not exported.
It is only in the JavaScript implementation (Dropdown.js).

declare const Dropdown: ForwardRefComponent<DropdownProps, HTMLDivElement> & {
  Divider: typeof DropdownDivider
  Header: typeof DropdownHeader
  Item: typeof DropdownItem
  Menu: typeof DropdownMenu
  SearchInput: typeof DropdownSearchInput
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions