Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.6.3

Menu

Menuは、一般的なドロップダウンメニューを表示するコンポーネントです。

ソース@yamada-ui/menu

テーマ

Menuは、複数パーツのコンポーネントです。

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: "inherit",
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!

GitHubでこのページを編集する

DrawerContextMenu