Dropdowns are a compound component that wraps around two subcomponents: dropdown trigger and dropdown menu. The dropdown menu is a Card component.
<Dropdown>
<DropdownTrigger>
<IconButton fontClass={fontClass} icon="ellipsis"></IconButton>
</DropdownTrigger>
<DropdownMenu
cardProps={{ scaleFactor: fontClass, material: "glass", materialProps: { thickness: "normal" } }}
>
<MenuItem startIcon={startIconConfig} endIcon={endIconConfig}> //Assume these config props were defined previously
End icon with extremely long text
</MenuItem>
<MenuItem startIcon={startIconConfig} endIcon={endIconConfig}>
End icon with extremely long text
</MenuItem>
<MenuItem startIcon={startIconConfig} endIcon={endIconConfig}>
End icon with extremely long text
</MenuItem>
</DropdownMenu>
</Dropdown>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Props unique to this component.
Props with globally-defined behavior that are used in multiple components.