Custom accordions
Last updated
Last updated
Bricks Boilerplate comes with a custom accordions that has few extra features comparing to Bricks nestable accordion element.
All the features are controlled via attributes applied to accordion component:
Attribute name | Value | Purpose |
---|---|---|
bt-expand-first
true/false
Expand first accordion item on page load
bt-expand-all
true/false
Expand all accordions on page load
bt-close-siblings
true/false
Only one accordion open at the same time
bt-header-scroll
number (e.g. 767)/false
Set max. viewport (in px) when to apply scroll to accordion header when it is active. Set false to disable it.
bt-faq-schema
true/false
Enable/turn off FAQ schema