Semantic-UI-React icon indicating copy to clipboard operation
Semantic-UI-React copied to clipboard

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

Open GeoDaz opened this issue 8 months ago • 1 comments

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
}

GeoDaz avatar Mar 21 '25 15:03 GeoDaz

Can I fix this issue?

RobertPaulRaise-R avatar May 23 '25 06:05 RobertPaulRaise-R