fast-menu-item

The fast-menu-item is a custom element meant to be used with fast-menu and supports roles of menuitem, menuitemcheckbox, and menuitemradio.

Usage

Live Editor
Result
Open in new window

Applying custom styles

import { customElement } from "@microsoft/fast-element";
import { MenuItem, MenuItemTemplate as template } from "@microsoft/fast-foundation";
import { MenuItemStyles as styles } from "./menu-item.styles";
@customElement({
name: "fast-menu-item",
template,
styles,
})
export class FASTMenuItem extends MenuItem {}