Set the `type` attribute to ”checkbox” to create a menu item that will toggle on and off when selected. You can use the `checked` attribute to set the initial state.

```html
<sd-menu-item type="checkbox" checked> Menu item 1 </sd-menu-item>
```
