It seems like I may be overlooking a simple solution here. Ant-Design dropdowns utilize an array of ItemProp objects to show the options, but this restricts me to having only one list of options.
const choices: MenuProps['items'] = [
{
label: 'X',
key: '4',
},
{
label: 'Y',
key: '5',
},
{
label: 'Z',
key: '6',
},];
However, this raises the question - how can I have multiple dropdowns on the same page? The documentation conveniently avoids addressing this issue altogether. Creating another constant variable with a different name doesn't seem to work since the Dropdown API specifically expects an array of ItemProp objects named 'items', as shown below.
<Dropdown menu={{ items}} placement="bottom" >
<Button>
Selection
</Button>
This leaves me unsure of how to create a new const array of ItemProp objects for additional dropdowns. Any assistance would be greatly appreciated.