MenuItemGroup.tsx 541 B

1234567891011121314151617181920
  1. import { styled } from "@mui/material";
  2. export const MenuItemGroup = styled("div")(
  3. ({ theme }) => `
  4. & > .MuiMenuItem-root{
  5. border-radius: 8px;
  6. background-color: transparent;
  7. }
  8. & > .MuiMenuItem-root:not(:last-of-type) {
  9. border-bottom-left-radius: 0;
  10. border-bottom-right-radius: 0;
  11. }
  12. & > .MuiMenuItem-root:not(:first-of-type) {
  13. border-top-left-radius: 0;
  14. border-top-right-radius: 0;
  15. }
  16. background-color: ${theme.colors.fill.faint};
  17. border-radius: 8px;
  18. `,
  19. );