Type alias DropdownItem

DropdownItem: {
    itemType: DropdownMenuItemType;
    label: string;
    onClick: (() => void);
}

Type declaration

  • itemType: DropdownMenuItemType

    The itemType determines the DropdownMenuItemType type as either Check or Radio.

  • label: string

    The label is the text that will be displayed on the dropdown item.

  • onClick: (() => void)

    The onClick function is called when the item is clicked.

      • (): void
      • Returns void