Accordion
Accordion
is a component for a list that displays information in an expandable or collapsible manner.
Theming
The Accordion
is a multi part component.
If you want to change the style of the component, please check here.
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",},}
Edit this page on GitHub