css
Description
Optional. Adds a custom style to the menuUsage
css?: string;
Example
<div>
<DropDownMenu options={options} css="mystyle">
<Button type="primary">Click me</Button>
</DropDownMenu>
</div>
Add the following to your stylesheet (e.g., styles.css):
.wx-menu.mystyle {
border: 1px solid black;
background-color: brown;
}
.wx-menu.mystyle .wx-item {
background-color: brown;
color: white;
}
Related article: Styling an item of DropDownMenu