---
title: Examples
slug: wip/w9aQ-examples
createdAt: 2024-10-11T14:43:47.820Z
---

# Examples

## Basic Usage

The Actions in an Action Menu can be minimally set by passing in Action Items with a label.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/LYwXRjL/9e0130eefa90931dc4f7fddc0f8b4110?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;300px&#x22; loading=&#x22;eager&#x22;></iframe>"}

:::

## Extended Usage

The Action Menu's header offers a dedicated area at the top of the Action Menu for context or additional information, such as personalised details.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/qBeQREG/eed1fb440ff0abc3cf8b2e22165677e5?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;650px&#x22; loading=&#x22;eager&#x22;></iframe>"}

:::

## Grouped Actions

Actions can be grouped to improve organization and user understanding, optionally using a header label to provide context for the grouped items.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/ZEgmKYL/7df87b914371eb20d989d0cc58812f95?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;500px&#x22; loading=&#x22;eager&#x22;></iframe>"}

:::

## Active/Selected

The `active` property indicates that an item is currently in effect or influencing the system. It's most relevant for persistent selections, helping users recognize active elements. For immediate actions an active state is less applicable as these are executed instantly without remaining in effect.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/BaXGRLa/c51eb6581142cc8785e202098287732e?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;350px&#x22; loading=&#x22;eager&#x22;></iframe>"}

:::

## Align

The `align` attribute defines the horizontal position of the Action Menu relative to its anchor element. By default, the Action Menu adjusts automatically to avoid being cut off by the screen edges.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/dyxQWOg/e64b13d1309162fdd109605c4199ab0c?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;400px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Placement

Specifying the placement attribute aligns the Dropdown vertically. By default, the Action Menu appears below its trigger. If space is limited, the Action Menu will automatically flip to avoid being cut off by the edge of the screen.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/KKOrmXa/3fb13ec4a637df22765cdd9a1423201d?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;400px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Width

If the width is not set, the menu will adjust to the width of the longest item listed, with a minimum width of 148px. You can specify a fixed or flexible width by using string values (e.g. '250px', '50%').

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/wvVQdZo/0fccee06f5210528b5ed4538228ab83f?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;400px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

## Height

The Action Menu automatically adjusts its height to fit its content by default, while also allowing for a custom maximum height to be set. It is recommended to define a maximum height for lists with numerous items, ensuring optimal display and user experience.

:::Iframe{iframeHeight="0" code="<iframe title=&#x22;Embeded content from codepen.io&#x22; class=&#x22;no-border max-full-width full-height flex-grow&#x22; src=&#x22;https://codepen.io/redbulldesign/embed/rNXQmXr/dc422c0b8c61561843c072c6fdd4054a?default-tab=html%2Cresult&editable=true&theme-id=39623&#x22; height=&#x22;650px&#x22; loading=&#x22;lazy&#x22;></iframe>"}

:::

