Skip to main content

css

Description

adds a custom style to the menu

Type

string

Example

<div>
<MenuBar {options} css={"mystyle"}></MenuBar>
</div>

<style>
:global(.wx-menu.mystyle) {
border: 1px solid black;
background-color: brown;
}

:global(.wx-menu.mystyle .wx-item) {
background-color: brown;
color: white;
}
</style>

Related article: Styling an item of MenuBar