[Accordion] Allow to disable gutter/spacing
See original GitHub issueAccordion Spacing - make the Accordion
API more friendly with respect to spacing
- [ x] I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
const MyAccordion = () => {
const classes = useStyles()
return (
<Accordion spacing={1}>
// ...
</Accordion>
Examples 🌈
😭😢😭😿
Motivation 🔦
I need the Accordion without so much spacing.
I provided the <Accordion classes={{root: classes.accordionRoot, expanded: classes.accordionExpanded}}>
etc all down the line and, it started to work while I had to use the !important
flag on the accordionRoot.margin
, as I am now vexed by the built-in expander icon’s coming along with even more deeply embedded style rule MuiAccordionSummary-expandIcon.Mui-expanded
, I want to roll my own accordion instead although it wouldn’t have the transitions, which are nice.
Ideally I could just turn a knob based on the theme
that dials spacing from 0
to 8
or whatever…
Thank you for reading.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
[Accordion] Allow to disable gutter/spacing #24492 - GitHub
Accordion Spacing - make the Accordion API more friendly with respect to spacing [ x] I have searched the issues of this repository...
Read more >Disabling collapse or expand in accordion of material-ui
For click of two icons, I don't want accordion to expand or collapse. Is this anyway related? reactjs · material-ui · Share.
Read more >Material ui accordion. - Built custom components for UX ...
The accordion component allows the user to show and hide sections of related ... [Accordion] Allow to disaable gutter/spacing [Accordion] Allow to disable...
Read more >packages/material-ui/src/AccordionSummary · v5.0.0-alpha.26
Name Last commit Last update
AccordionSummary.d.ts Allow to disable gutter/spacing (#24532) 1 year ago
AccordionSummary.js Allow to disable gutter/spacing (#24532) 1 year ago
accordionSummaryClasses.d.ts Simplify xxxClasses...
Read more >Accordion · Bootstrap v5.0
This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve started to work on this 👍
The prop
disableGutters
was released with version 5.0.0-alpha.24 and is available since then.