Menu
Also known as: Navigation, Selectable
Preview
Resources
Properties
Property | Values | Default |
---|---|---|
Size Variant | Sm | Md | Lg | Md |
State Variant | Default | Hover | Focus | Active | Disabled | Default |
Start item Boolean | true | false | true |
Label Text | string | Label |
End item Boolean | true | false | true |
When to use
Presenting a list of related actions, navigation links or options in a compact form.
Providing contextual actions based on the user’s selection, such as right-click menus.
If only one action is available, use a button instead.
Selection
Menu items have two visual states: selected
and unselected
, signaling whether an option is active or not.
States
Menu (and all other forms and selection controls) express states. States indicate current condition of the component to someone interacting with it. Using states ensure clear user feedback, highlighting possible actions or barriers. We have included most common states:
State | Context |
---|---|
Default | Status of the component before the interaction. Also referred to as ‘resting’. |
Hover | When the user moves their cursor over the component, but is not taking the action. Slight visual change can indicate interactivity of the component. |
Focus | When user selects the component via keyboard navigation, but has not yet taken action on it. |
Disabled | A non-interactive state where the component appears faded or grayed out. It indicates that the action is unavailable at the moment. |