Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Accordion

Accordion is a component for a list that displays information in an expandable or collapsible manner.

Source@yamada-ui/accordion

Theming

The Accordion is a multi part component.

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!

Edit this page on GitHub

PreviousDisclosureNextTabs