Skip to main content

css

Description

Optional. Adds a custom style to the menu

Usage

css?: string;

Example

// usage in JSX
<div>
<ActionMenu options={options} css="mystyle" />
</div>
/* global CSS (e.g. in your stylesheet) */
.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 ActionMenu