Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.1

Menu

Menu is a component that displays a common dropdown menu.

Source@yamada-ui/menu

Theming

The Menu is a multi part component.

export const Menu: ComponentMultiStyle<"Menu"> = {
baseStyle: {
button: {
transitionProperty: "common",
transitionDuration: "normal",
},
content: {
rounded: "md",
minW: "xs",
bg: ["white", "black"],
border: "1px solid",
borderColor: ["blackAlpha.200", "whiteAlpha.100"],
color: "inherit",
boxShadow: ["lg", "dark-lg"],
zIndex: "guldo",
},
list: {
py: "2",
},
item: {
cursor: "pointer",
py: "1.5",
px: "3",
transitionProperty: "background",
transitionDuration: "ultra-fast",
transitionTimingFunction: "ease-in",
_focus: {
bg: ["blackAlpha.50", "whiteAlpha.50"],
},
_active: {
bg: ["blackAlpha.50", "whiteAlpha.50"],
_disabled: {
bg: ["white", "black"],
},
},
_disabled: {
opacity: 0.4,
cursor: "not-allowed",
},
},
icon: {
color: ["blackAlpha.600", "whiteAlpha.700"],
},
command: {
opacity: 0.6,
},
divider: {
my: "2",
borderBottomWidth: "1px",
borderColor: "inherit",
},
group: {},
groupLabel: {
py: "1.5",
px: "3",
fontSize: "sm",
fontWeight: "semibold",
color: ["blackAlpha.700", "whiteAlpha.600"],
},
},
}
Copied!

Edit this page on GitHub

PreviousDrawerNextContextMenu