Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import { DrawerMenu } from "./DrawerMenu";
import { getPlatform } from "../../utils/platform";

interface Props {
/**
* CSS classes for the menu.
*/
className?: string;

/**
* The menu title. This can be hidden with `showTitle={false}` in which case it will only
* be a label for screen readers.
Expand Down Expand Up @@ -83,6 +88,7 @@ const DropdownMenuItemWrapper: FC<MenuItemWrapperProps> = ({
* A menu opened by pressing a button.
*/
export const Menu: FC<Props> = ({
className,
title,
showTitle = true,
open,
Expand Down Expand Up @@ -122,7 +128,11 @@ export const Menu: FC<Props> = ({
<Trigger asChild>{trigger}</Trigger>
<Portal>
<Content asChild side={side} align={align} sideOffset={8}>
<FloatingMenu title={title} showTitle={showTitle}>
<FloatingMenu
className={className}
title={title}
showTitle={showTitle}
>
{children}
</FloatingMenu>
</Content>
Expand Down
Loading