mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
* base menu works * action internal link & group * action external link * simplify NewTemplatesMenu * animation * tiny cleanup * simplify group api * icon spacer * root action * mobile menu * decrease drawer animation speed * format * animation, const separator * memo.. * TemplatesMenu + Scrollable dropdown * delete file-ops * cap height
20 lines
586 B
TypeScript
20 lines
586 B
TypeScript
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
import { MoreIcon } from "outline-icons";
|
|
import * as React from "react";
|
|
import NudeButton from "~/components/NudeButton";
|
|
|
|
type Props = React.ComponentPropsWithoutRef<
|
|
typeof DropdownMenuPrimitive.Trigger
|
|
> & {
|
|
className?: string;
|
|
};
|
|
|
|
export const OverflowMenuButton = React.forwardRef<HTMLButtonElement, Props>(
|
|
({ className, ...rest }, ref) => (
|
|
<NudeButton ref={ref} className={className} {...rest}>
|
|
<MoreIcon />
|
|
</NudeButton>
|
|
)
|
|
);
|
|
OverflowMenuButton.displayName = "OverflowMenuButton";
|