You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/circuit-ui/components/ActionMenu/ActionMenu.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,19 @@ An ActionMenu displays a list of subsequent actions, when interacting with an ac
10
10
<Storyof={Stories.Base} />
11
11
<Props />
12
12
13
-
- The reference element, which triggers ActionMenu, can be primary, secondary, tertiary buttons, an overflow icon, or components with embedded buttons such as the [ImageInput](Forms/ImageInput) component.
14
-
- Each ActionMenu action item is represented by an appropriate HTML element (e.g., a button element or an anchor element).
13
+
- The reference element which triggers the ActionMenu must be a `button` element or a component that renders a `button`such as the Button or IconButton components.
14
+
- Each ActionMenu action item is represented by an appropriate HTML element. Elements provided with an `href` will render as anchor elements while elements provided with an `onClick` will render as buttons.
15
15
- If needed, the dividing line can be used to separate ActionMenu action items.
16
16
- The leading icon is optional.
17
-
- The ActionMenu is powered by [Floating UI](https://floating-ui.com/docs/react-dom). You can easily change the position of the ActionMenu relative to the reference element by passing in the `placement` prop. If you want to offset the ActionMenu in the x and y directions, use the `offset` prop.
17
+
- The ActionMenu is powered by [Floating UI](https://floating-ui.com/docs/react-dom). You can change the position of the ActionMenu relative to the reference element by passing in the `placement` prop. If you want to offset the ActionMenu in the x and y directions, use the `offset` prop.
18
18
19
19
<Storyof={Stories.Offset} />
20
20
21
21
## Related components
22
22
23
-
This component is built on top of the low level [Popover](Components/Popover/Docs) component. If this component does not meet your requirements, you can use the Dialog component directly to build your own custom popover component.
23
+
This component is built on top of the low level [Dialog](Components/Dialog/Docs) component. If this component does not meet your requirements, you can use the Dialog component directly to build your own custom popover component.
24
24
25
25
## Usage guidelines
26
26
27
-
-**Do** use clear, concise and actionable labels for ActionMenu items
28
-
-**Do** always think about the priority of the action option to be taken and put the option order in logical order
27
+
-**Do** use clear, concise and actionable labels for ActionMenu items.
28
+
-**Do** always think about the priority of the actions to be taken and put the options in logical order.
0 commit comments