Demo
  • HEROES & NAV

    • Hero Sections
    • Bold Heroes
    • Breadcrumbs
    • Banner Patterns
    • Floating Bars

    SOCIAL PROOF

    • Single Reviews
    • Multi Reviews
    • Multi Reviews (Alt)
    • Testimonial Sliders
    • Logo Grids
    • Stats & Counters

    CONTENT

    • Simple Post
    • Advanced Post
    • Modern Post
    • Timeline
    • Team Sections
    • Changelog
    • Careers
    • Events

    FORMS & FEEDBACK

    • CTA Sections
    • Contact Forms
    • Newsletter
    • Cookie Consent
    • Toasts

    FEATURES

    • 3 Card features
    • 4 Card Features
    • 6 Card Features
    • Feature Blocks
    • Process

    INTERACTIVE

    • Toggle Panels
    • Tabbed Sections
    • Video Lightboxes
    • Swiper Sliders
    • Vertical Sliders
    • Thumbnail Siders
    • Marquee Tickers
    • Before / After

    COMMERCE & DATA

    • Pricing Sections
    • Comparation Tables
    • Data tables

    LAYOUT

    • Footer Sections
    • Image Grids
    • Empty States
    • 404 Pages

    NAVIGATION

    • Navigation Bars

    MEDIA

    • Image Block
    • Icon Block
    • Video Block
    • Video Lightbox Block
    • Avatar Block

    DISPLAY

    • Badge Block
    • Tag Block
    • Tooltip Block
    • Card Block
    • Divider Block
    • Breadcrumb Block

    Layout

    • Grid Block
    • Flex Block
    • Absolute Box Block

    TYPOGRAPHY

    • Heading Block
    • Paragraph Block
    • List Block
    • Blockquote Block

    INTERACTIVE

    • Button Block
    • Link Button Block
    • Accordion Block
    • Tabs Block
    • Slider Block
    • Thumbnail Slider Block
    • Marquee Block
    • Before After Slider Block

    DATA & CCOMMERCE

    • Data Table Block
    • Pricing Block
    • Progress Block
    • Timeline Block

    FORMS

    • Contact Form Block

    TECH & SAAS

    • Helios
    • Tempo
    • Verso
    • Ledge Finance

    TRAVEL & LEISURE

    • Meridian
    • Traverse
    • Vela
    • Wildpath
    • Poseidon

    HOSPITALITY

    • Wineatic
    • Trattoria Sole
    • Santa Lucia

    SERVICES & DESIGN

    • Kova
    • Haven Studio
    • Volta
    • Pxlcraft
    • Apex Agency

    SPECIALITY

    • Bright Smile
    • Dentist Modern
    • Bento
  • Ecommerce
  • Docs
Websites
Patterns
HEROES & NAV
Hero SectionsBold HeroesBreadcrumbsBanner PatternsFloating Bars
SOCIAL PROOF
Single ReviewsMulti ReviewsMulti Reviews (Alt)Testimonial SlidersLogo GridsStats & Counters
CONTENT
Simple PostAdvanced PostModern PostTimelineTeam SectionsChangelogCareersEvents
FORMS & FEEDBACK
CTA SectionsContact FormsNewsletterCookie ConsentToasts
FEATURES
3 Card features4 Card Features6 Card FeaturesFeature BlocksProcess
INTERACTIVE
Toggle PanelsTabbed SectionsVideo LightboxesSwiper SlidersVertical SlidersThumbnail SidersMarquee TickersBefore / After
COMMERCE & DATA
Pricing SectionsComparation TablesData tables
LAYOUT
Footer SectionsImage GridsEmpty States404 Pages
Blocks
NAVIGATION
Navigation Bars
MEDIA
Image BlockIcon BlockVideo BlockVideo Lightbox BlockAvatar Block
DISPLAY
Badge BlockTag BlockTooltip BlockCard BlockDivider BlockBreadcrumb Block
Layout
Grid BlockFlex BlockAbsolute Box Block
TYPOGRAPHY
Heading BlockParagraph BlockList BlockBlockquote Block
INTERACTIVE
Button BlockLink Button BlockAccordion BlockTabs BlockSlider BlockThumbnail Slider BlockMarquee BlockBefore After Slider Block
DATA & CCOMMERCE
Data Table BlockPricing BlockProgress BlockTimeline Block
FORMS
Contact Form Block
Demos
TECH & SAAS
HeliosTempoVersoLedge Finance
TRAVEL & LEISURE
MeridianTraverseVelaWildpathPoseidon
HOSPITALITY
WineaticTrattoria SoleSanta Lucia
SERVICES & DESIGN
KovaHaven StudioVoltaPxlcraftApex Agency
SPECIALITY
Bright SmileDentist ModernBento
EcommerceDocs
On This Page
Accordion BlockBlock StructureToggle IconItem StylingBorder & ShadowItem Border RadiusSpacingAll Available Controls
Blocks
Grid Block
Grid Item Block
Flex Block
Absolute Block
Heading Block
Paragraph Block
List Block
Image Block
Icon Block
Video Block
Video Lightbox Block
Button Block
Accordion Block
Tabs Block
Slider Block
Slider Item Block
Thumbnail Slider
Thumbnail Slider Item
Marquee Block
Marquee Item Block
Before / After
Data Table Block
Pricing Card Block
Progress Bar Block
Timline Block
Header Block
Simple Header
Advanced Header
Advanced Header Featured
Float Header
Blog Listing Block
Separator Block
Contact Form Block
Docs

/

Accordion Block

Accordion Block

A container for collapsible FAQ or content sections. Each item has a clickable title that reveals its content. Controls the toggle icon, item styling, border/shadow, and background for both open and closed states.

INTERACTIVE PREVIEW

What is included in the plan?

All plans include access to the full block library, design token system, and 260+ pre-designed sections. Premium plans add priority support and early access to new features.

Can I cancel anytime?

Yes, cancel anytime from your account settings — no long-term commitment required.

Do you offer a free trial?

Yes, every plan starts with a 14-day free trial. No credit card required.

First item shown open. Click/tap toggles are handled by view.js on the live site.

When to use this block

  • FAQ sections with questions and answers
  • Feature details that expand on click
  • Pricing comparison details, terms & conditions
  • Any content that benefits from progressive disclosure

Block Structure

The accordion is a parent container with a specific nesting hierarchy. Each item has a title (with the toggle icon) and content area that can hold any blocks.

NESTING HIERARCHY

Accordion Block

Accordion Item

Accordion Title — heading + icon

Any blocks — the collapsible content

Accordion Item

...

Toggle Icon

Upload a custom SVG icon (chevron, plus/minus, arrow) that appears on every item title. Control its size and how many degrees it rotates when the item opens.

Icon

Sidebar Panel

Icon

chevron.svg

Width

20

px

Height

20

px

Rotation

180

deg

ROTATION EXAMPLES

Closed

Open (180°)

The icon rotates by the specified degrees when an item opens. Set to 180 for a flip, 90 for a quarter turn, 45 for a subtle tilt.

Item Styling

Style all accordion items from the parent. Background, padding, margin, and border radius are set once and apply uniformly.

Item Style

Sidebar Panel

Background

#FFFFFF

Active Background

#F7F7F7

Item Padding

16

Item Margin

8

CLOSED VS OPEN BACKGROUND

Closed item

#FFFFFF

Open item

#F7F7F7

Content visible when expanded.

Closed item

#FFFFFF

Border & Shadow

Add border or shadow to accordion items. Control whether the styling applies to closed items, open items, or both.

Border / Shadow

Sidebar Panel

Shadow

sm

Apply to closed

Apply to open

STATE TARGETING

Both (default)

All items styled

Closed only

Border hides on open

Open only

Border appears on open

Neither

No border/shadow

Shadow presets: sm, base, md, lg, xl, 2xl, inner. Shadow takes priority over border when both are set.

Item Border Radius

Round the corners of each accordion item. Per-corner control, responsive across breakpoints.

Item Radius

Per-corner, responsive

Top Left

12

Top Right

12

Bottom Left

12

Bottom Right

12

Responsive: Mobile Tablet Desktop

Spacing

Two levels of spacing: the wrapper (outer) and each item (inner). Both are responsive.

Wrapper Spacing

Padding (all 4 sides) and margin (top/bottom) on the outer accordion container.

Item Spacing

Padding (all 4 sides) and margin (top/bottom) on each individual accordion item. Controls the gap between items and inner breathing room.

Responsive: Mobile Tablet Desktop

All Available Controls

Toggle Icon SVG upload, size, rotation

iconUrl/iconId: SVG icon. iconWidth/iconHeight: size in px (default 24). iconRotation: degrees the icon rotates when open (e.g. "180"). Passed to children via block context.

Item Background Closed + open/active colors

itemBgColor: background for all items. itemActiveBgColor: background when item is open (.accordion-item--open class toggled by JS).

Border & Shadow Per-item, with open/closed targeting

borderShadow: shadow preset (sm–2xl, inner). borderMobile/Tablet/Desktop: responsive border objects. borderOnClosed/borderOnOpen: toggle which state gets the styling. Shadow takes priority over border.

Item Border Radius Per-corner, 3 breakpoints

itemBorderRadiusMobile/Tablet/Desktop: per-corner objects (topLeft, topRight, bottomRight, bottomLeft). Applied to .accordion-item.

Item Spacing Per-item padding & margin, 3 breakpoints

itemPaddingTop/Bottom/Left/Right (+Md/Lg): inner padding on each item. itemMarginTop/Bottom (+Md/Lg): spacing between items. All in px.

Wrapper Spacing Outer padding & margin, 3 breakpoints

Padding: paddingTop/Bottom/Left/Right (+Md/Lg). Margin: marginTop/Bottom (+Md/Lg). All in px. Applied to the outer accordion wrapper.

Related Blocks

Button Block

Standalone styled button — shares similar color and hover patterns with the submit button controls.

List Block

Ordered and unordered lists with similar typography and spacing controls.

Brandname

Building tools that help teams move faster, ship better, and stay aligned.

Product

  • Features
  • Pricing
  • Integrations
  • Changelog

Company

  • About
  • Blog
  • Careers
  • Press

Resources

  • Documentation
  • API Reference
  • Support
  • Status

© 2026 Brandname. All rights reserved.

Privacy Policy
Terms of Service