Accordion
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",},}
GitHubでこのページを編集する