Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

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

Edit this page on GitHub

PreviousDrawerNextContextMenu