The tried and true accordion block that every developer must make at some point in their life. This also happens to be a fully accessible accordion.
This is the actual block! 👇🏼
Anywhere you’d like to go!
Something spectacular!
Just follow me!
Each accordion section is its own individual block, but they interact together when opening and closing each section (go ahead, try it out!). Each section also has a nice little hover and open/close animation.
The colors for the borders and the drop shadows are set to match the theme using the Primary and Primary Accent colors.
Upon adding the block in the editor, it prompts the user to enter heading and text content.
Want to see how I made it?
Check out the code on GitHub!