Usage
{{< accordion inner = "acc-tab content" >}}Use with acc-tab partials to create collapsible content sections
Description
Creates an interactive accordion container with collapsible sections. Perfect for organizing content into expandable/collapsible tabs that help manage page space and improve user experience.
Parameters
indicates required parameter
inner =
"string"REQUIRED
Contains acc-tab partials that define the accordion sections
Examples
Basic accordion with FAQ sections using hw shortcode
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="What is this service?">}}
Our service provides comprehensive solutions for modern web development.
- Fast deployment
- Scalable architecture
- 24/7 support
{{</hw>}}
{{<hw t="acc-tab" header="How do I get started?">}}
Getting started is easy:
1. Sign up for an account
2. Choose your plan
3. {{<hw t="include" from="quick-start.md">}}
{{</hw>}}
{{<hw t="acc-tab" header="What are the pricing options?">}}
We offer flexible pricing:
- **Starter**: $10/month
- **Professional**: $25/month
- **Enterprise**: Custom pricing
{{</hw>}}
{{</hw>}}Use hw shortcode with common vocabulary for consistent styling
Technical documentation accordion
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="API Configuration">}}
**Database Setup**
{{<hw t="include" from="docs/database-config.md">}}
**Environment Variables**
Set these required variables:
- `DATABASE_URL`
- `API_SECRET_KEY`
- `REDIS_URL`
{{</hw>}}
{{<hw t="acc-tab" header="Authentication Methods">}}
We support multiple authentication methods:
{{<hw t="table">}}
{{<hw t="thead">}}
{{<hw t="trth">}}Method{{</hw>}}
{{<hw t="trth">}}Security Level{{</hw>}}
{{<hw t="trth">}}Use Case{{</hw>}}
{{</hw>}}
{{<hw t="tbody">}}
{{<hw t="tr">}}
{{<hw t="td">}}JWT{{</hw>}}
{{<hw t="td">}}High{{</hw>}}
{{<hw t="td">}}API access{{</hw>}}
{{</hw>}}
{{<hw t="tr">}}
{{<hw t="td">}}OAuth2{{</hw>}}
{{<hw t="td">}}High{{</hw>}}
{{<hw t="td">}}Third-party integration{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}Combine with other partials like tables and includes for rich content
Project status accordion with media
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Frontend Development">}}
{{<hw t="block" header="React Components" src="/images/react-demo.png" srcOn="right">}}
Current progress on the user interface components.
- ✅ Login/Registration forms
- ✅ Dashboard layout
- 🚧 Settings panel
- ⏳ User profile pages
{{</hw>}}
{{</hw>}}
{{<hw t="acc-tab" header="Backend API">}}
{{<hw t="caption" header="API Status" text="All core endpoints are operational and tested">}}
{{<hw t="include" from="api-status.md">}}
{{</hw>}}
{{</hw>}}Nest other hw partials for complex layouts with media and formatting
Additional Information