mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
* renamed folder MainMenu -> main-menu * rename ariaLabel -> aria-label and dataTestId -> data-testid * allow rest props * fix * lint * add ts check * ts for div * fix * fix * fix
21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
import React from "react";
|
|
|
|
const DropdownMenuItemCustom = ({
|
|
children,
|
|
className = "",
|
|
...rest
|
|
}: {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
} & React.HTMLAttributes<HTMLDivElement>) => {
|
|
return (
|
|
<div
|
|
{...rest}
|
|
className={`dropdown-menu-item-base dropdown-menu-item-custom ${className}`.trim()}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default DropdownMenuItemCustom;
|