Draft UI

Menu

A menu displays a list of actions or options that a user can choose.

Installation

bash
npx @sly-cli/sly add draft-ui menu

Examples

Default

This is the default Menu example.

Disabled

Make specific MenuItem's disabled by adding their id to the MenuContent's disabledKeys prop.

With Sections

Add sections to the menu by using MenuSection and MenuHeader.

As Checkbox List

MenuItem can act checkboxes by setting the MenuContent's selectionMode prop to multiple.

As Radio List

MenuItem can act radios by setting the MenuContent's selectionMode prop to single.

Complex Menu Items

Coming Soon: An example showing how to properly create **MenuItem**s with complex content.