Getting started
Foundation
Typography
Navigation
Feedback
Forms
Menu presents a set of actions to perform on the currently visible or selected resource.
There are use cases when a "More" or "Actions" menu is needed to show contextual actions relevant to the currently visible resource. Usually these menus don't actually say "More" or "Actions", but show an icon with three dots in it.
Hightouch UI offers a convenience component specifically for that use case called MenuActionsButton
to replace MenuButton
with.
Icon can be vertical too.
If you need to use a custom icon, use MenuIconButton
component.
Use this variant to achieve a border around the menu button.
Name | Default | Description |
---|---|---|
children | — | ReactNode Menu button and list. |
Name | Default | Description |
---|---|---|
children | — | ReactNode Button text. |
size | "md" | "sm" | "md" | "lg" Determines the height of the button. |
Name | Default | Description |
---|---|---|
aria-label | "Actions" | string Button text for screen readers. |
orientation | "horizontal" | "horizontal" | "vertical" Icon orientation. |
size | "md" | "sm" | "md" | "lg" Determines the height of the button. |
variant | "ghost" | "secondary" | "ghost" Button variant, which determines its appearance. |
Name | Default | Description |
---|---|---|
aria-label | — | string Button text for screen readers. |
icon | — | ComponentType<SVGAttributes<SVGElement>> Icon to show inside of a button. |
size | "md" | "sm" | "md" | "lg" Determines the height of the button. |
variant | "ghost" | "secondary" | "ghost" Button variant, which determines its appearance. |
Name | Default | Description |
---|---|---|
children | — | ReactNode Menu items. |
Name | Default | Description |
---|---|---|
isDisabled | — | boolean Determines if menu item is disabled. |
children | — | ReactNode Menu item text. |
icon | — | ComponentType<SVGProps<SVGSVGElement>> Icon. |
variant | — | "normal" | "danger" Variant. Use `"danger"` for destructive or dangerous actions. |
onClick | — | () => void Callback for when user clicks a menu item. |
Name | Default | Description |
---|