Accordion
Open/close sections with a button and aria-expanded.
Compare com details/summary nativo - às vezes o HTML basta.
HTML
CSS
JavaScript
Live preview
Console
Run the code to see its output here.Open/close sections with a button and aria-expanded.
Compare com details/summary nativo - às vezes o HTML basta.
Run the code to see its output here.