Files
nginx-proxy-manager/frontend/src/components/PrettyMenuButton.tsx
2023-02-27 17:21:10 +10:00

24 lines
523 B
TypeScript

import { Button, MenuButton, MenuButtonProps } from "@chakra-ui/react";
import { FiChevronDown } from "react-icons/fi";
function PrettyMenuButton(props: MenuButtonProps) {
return (
<MenuButton
size="sm"
as={Button}
fontFamily="heading"
bgGradient="linear(to-r, red.400,pink.400)"
color="white"
rightIcon={<FiChevronDown />}
_hover={{
bgGradient: "linear(to-r, red.400,pink.400)",
boxShadow: "xl",
}}
{...props}>
{props.children}
</MenuButton>
);
}
export { PrettyMenuButton };