https://github.com/horttcore/accordion-block
A WordPress accordion block as composer package
https://github.com/horttcore/accordion-block
block gutenberg wordpress
Last synced: about 1 month ago
JSON representation
A WordPress accordion block as composer package
- Host: GitHub
- URL: https://github.com/horttcore/accordion-block
- Owner: Horttcore
- License: gpl-3.0
- Created: 2019-11-22T07:50:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T16:17:49.000Z (over 4 years ago)
- Last Synced: 2025-03-05T09:45:34.703Z (about 2 months ago)
- Topics: block, gutenberg, wordpress
- Language: JavaScript
- Homepage: https://horttcore.de
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Accordion
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](https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/)
## Changelog
### v2.0
- Add: isOpen display option
- Remove bower and npm support### v1
- Initial release