Skip to content

Commit

Permalink
feat(components): adjust menu button to be div
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlfischer committed Jan 11, 2024
1 parent b8610fc commit 36841be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/menu/menu-button/menu-button.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from "react";
import { Menu as HeadlessMenu } from "@headlessui/react";
import React from "react";

export interface MenuButtonProps {
children: React.ReactNode;
className?: string;
}

export const MenuButton = ({ children, className }: MenuButtonProps) => {
return <HeadlessMenu.Button className={className}>{children}</HeadlessMenu.Button>;
return (
<HeadlessMenu.Button as="div" className={className}>
{children}
</HeadlessMenu.Button>
);
};

0 comments on commit 36841be

Please sign in to comment.