ralfhortt / accordion-block
A WordPress accordion block
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 2
Language:JavaScript
Type:wp-block
This package is auto-updated.
Last update: 2024-10-29 06:12:08 UTC
README
A simple accordion block
Installation
Install via composer
$ composer require ralfhortt/accordion-block
Import the block (set the right path)
import "${PATH}/vendor/ralfhortt/accordion-block";
Features
- Native html elements (details / summary)
- Title
- InnerBlocks
- Initial state: open
Keywords
- Accordion
- Toggle
- Collapsable
FAQ
Styling the triangle
Checkout this CSS-Tricks article
Changelog
v2.0
- Add: isOpen display option
- Remove bower and npm support
v1
- Initial release