Quick start guide and documentation
<head>)
</body>)
Panel Title
Your content here...
Card-style accordion with responsive columns - great for feature highlights or visual FAQs
Feature One
Card accordion items expand independently...
Feature Two
Each card has its own height when expanded...
Perfect for FAQ sections where only one answer should be visible at a time
How do I get started?
Simply include the CSS and JS files, then add the markup...
Add visual interest with FontAwesome icons and custom styling
Account Settings
Manage your account preferences...
Allow users to expand multiple sections simultaneously
Section 1
Content can be expanded independently...
| Attribute | Purpose | Values |
|---|---|---|
data-single-open |
Only one panel open at a time (FAQ-style) | "true" |
data-alternate |
Enable alternating row colors | "true" |
data-custom-colors |
Use custom CSS variables for colors | "true" |
data-filterbus-key |
Subscribe to FilterBus for visibility filtering | Filter key name (e.g., "category") |
| Class | Purpose | Applied To |
|---|---|---|
.accordion |
Card accordion - responsive multi-column cards with independent expansion | Container |
.classic-accordion |
Classic single-column stacked accordion | Container |
.accordion-item |
Individual accordion panel | Panel wrapper |
.accordion-title |
Clickable title/trigger | Title element |
.accordion-content |
Collapsible content area | Content wrapper |
.rsl-center, .rsl-left, .rsl-right |
Text alignment helpers | Title or content |
.accordion-titlearia-expanded and adds/removes .open class.accordion-content to show/hide contentdata-single-open="true", other panels automatically closeid attributes for each title and use aria-labelledby to connect titles to content panels for proper screen reader support.
.accordion)The card accordion displays items as individual cards that can be arranged in multiple columns. Each card has rounded corners, subtle shadows, and expands independently without affecting other cards in the same row.
align-items: flex-start so each card can have its own height.classic-accordion)The classic accordion is a traditional single-column stacked layout with no gaps between items. Best for FAQs, documentation, and sequential content.
.rsl-left, .rsl-center, .rsl-right, .rsl-mobile-rightdata-alternate="true" for zebra stripingAccordion items can be filtered using the FilterBus pub/sub system. This enables dynamic filtering of FAQ sections, help documentation, or any categorized content.
data-filterbus-key to the accordion container specifying which filter key to listen to. Add matching data-{key} attributes to each accordion item. When that filter key changes via FilterBus.publish(), items are automatically shown or hidden.
How do I get started?
Simply include the CSS and JS files...
What payment methods do you accept?
We accept all major credit cards...
What browsers are supported?
All modern browsers including Chrome, Firefox, Safari...
data-single-open="true" for FAQs and help documentation to keep the interface focused
data-alternate="true") improves scannability in long accordion lists
.accordion-content for responsive organization
accordion.js is loaded after layout.jstabindex="0" and role="button"aria-expanded is set to "false" initially.accordion-content class.accordion-itemaccordion.css is loadedtabindex="0" is on each .accordion-titlerole="button" is present for screen reader compatibilityAccordions are ADA-compliant by default:
aria-expanded announces panel state to screen readersaria-labelledby connects titles to content panelsOpen accordion.html in your browser
Use playground.html as a template
Check out the styled accordion example for advanced designs