Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.7.2

Accordion

Accordionは、情報を展開または折りたたんで表示するリストのコンポーネントです。

ソース@yamada-ui/accordion

テーマ

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

export const Accordion: ComponentMultiStyle<"Accordion"> = {
baseStyle: {
button: {
"&[aria-disabled=true]": {
cursor: "default",
},
px: "4",
py: "3",
transitionDuration: "normal",
transitionProperty: "common",
_focusVisible: {
boxShadow: "outline",
},
_nativeDisabled: {
cursor: "not-allowed",
opacity: 0.4,
},
},
container: {},
icon: {
color: ["blackAlpha.600", "whiteAlpha.700"],
fontSize: "1.25em",
ml: "auto",
},
item: {},
panel: {
pb: "3",
px: "4",
},
},
variants: {
basic: {
button: {
"&:hover:not(:disabled):not([aria-disabled=true])": {
bg: ["blackAlpha.50", "whiteAlpha.50"],
},
},
item: {
borderColor: "inherit",
borderTopWidth: "1px",
_last: {
borderBottomWidth: "1px",
},
},
},
card: {
button: {
_hover: {
"&:hover:not(:disabled):not([aria-disabled=true])": {
bg: ["blackAlpha.50", "whiteAlpha.50"],
},
_expanded: {
bg: "none",
},
},
},
item: {
bg: ["blackAlpha.50", "whiteAlpha.50"],
borderWidth: "1px",
rounded: "md",
_expanded: {
bg: ["white", "black"],
},
_notFirst: {
mt: "md",
},
},
},
unstyled: {},
},
defaultProps: {
variant: "basic",
},
}
Copied!

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

ディスクロージャーTabs