HomePluginsToolsGuidesPortfolioWorkflowAboutContact
GetSet Logo

Premium UI/UX layout engines, customizable micro-interaction plugins, and high-performance components for modern web developers.

Company

  • Home
  • Plugins
  • Developer Tools
  • Guides
  • Showcase
  • Our Process
  • About Us
  • Contact

Free Tools

  • ConvertAll
  • CodeFormat
  • CSS Toolkit
  • Diff Checker
  • Code Image
  • Token Counter
  • SVG Toolkit
  • JSON Studio
  • Color Studio

More Tools

  • Unit Converter
  • Meta Tags
  • Favicon Generator
  • Mock Data
  • Dev Snippets
  • Password Generator
  • Calculator Hub
  • QR Code Generator
  • Word Counter

Policies

  • Terms and Conditions
  • Privacy Policy
  • Accessibility Policy
  • Cookie Policy

© 2026 GetSet. All rights reserved.

Crafted for frontend excellence.

Your Bundle

Your bundle is empty

Add plugins from the catalog to build one combined CDN link — like picking font families.

Browse plugins
Layout Plugin

GS Accordion

Accordion with single/multiple open modes, buttery grid-row height animation, chevron/plus icons, and bordered/separated/filled/ghost variants.

Latest: v1.0.5
Downloads last month: 257
Visit Demo Website

Install Package

npm i @get-set/gs-accordion
or via CDN
<link rel="stylesheet" href="https://cdn.get-set.it/gs-accordion/latest/gs-accordion.min.css">
<script src="https://cdn.get-set.it/gs-accordion/latest/gs-accordion.min.js"></script>
Interactive Playground

Live Sandbox

Accordion.jsx
1
2
3
4
5
6
7
8
9
import Accordion from '@get-set/gs-accordion';

export default function App() {
  return (
    <Accordion>
      <div className="content">Your Accordion content</div>
    </Accordion>
  );
}
Live Preview

A zero-dependency, fully themeable accordion with buttery height animations.

Yes — switch the mode option between single and multiple.

Variants, icons, themes and an accent color are all one option away.

Options

Configuration Values

Reference?Reference option.
Mode?`single` = one open at a time; `multiple` = independent.
Default Open?Items open on init. Array of indices or keys, or a single index/key.
Animation Duration?Slide/fade duration in ms.
Animation Easing?CSS easing applied to the height slide.
Icon?Header indicator glyph.
Icon Position?Which side the icon sits on (RTL-aware).
Custom Icon?Custom icon HTML (used when `icon: 'custom'` and per-item icon is unset).
Variant?Visual variant of the shell.
Size?Size preset. Default: 'md'.
Theme?Visual theme. `auto` follows prefers-color-scheme.
Accent Color?Accent color (CSS var --gsa-accent).
Class Name?Extra class name applied to the accordion root.

Feature Flags

API Specifications

OptionTypeDefaultDescription
referencestringnoneReference.
itemsGSAccordionItem[]noneConfig-array items. When provided the accordion renders its own markup. If omitted, items are read from the container's child markup (header + panel pairs).
modeGSAccordionMode'single'`single` = one open at a time; `multiple` = independent. Default: 'single'.
defaultOpenGSAccordionItemKey | GSAccordionItemKey[]noneItems open on init. Array of indices or keys, or a single index/key.
collapsiblebooleantrueIn `single` mode, allow the open item to be collapsed (all closed). Ignored in `multiple` mode (always collapsible). Default: true.
animationbooleantrueSmooth height-slide + fade on open/close. `false` disables all motion. Default: true.
animationDurationnumber300Slide/fade duration in ms. Default: 300.
animationEasingstring'cubic-bezier(0.4, 0, 0.2, 1)'CSS easing applied to the height slide. Default: cubic-bezier(.4,0,.2,1).
reducedMotion'auto' | boolean'auto'Honor `prefers-reduced-motion`. `'auto'` follows the OS setting; `true` always reduces; `false` never reduces. Default: 'auto'.
iconGSAccordionIcon'chevron'Header indicator glyph. `false` hides it. Default: 'chevron'.
iconPositionGSAccordionIconPosition'right'Which side the icon sits on (RTL-aware). Default: 'right'.
iconRotatebooleantrueRotate/morph the icon when its item opens. Default: true.
customIconstringnoneCustom icon HTML (used when `icon: 'custom'` and per-item icon is unset).
variantGSAccordionVariant'bordered'Visual variant of the shell. Default: 'bordered'.
sizeGSAccordionSize'md'Size preset. Default: 'md'.
themeGSAccordionTheme'auto'Visual theme. `auto` follows prefers-color-scheme. Default: 'auto'.
accentColorstringnoneAccent color (CSS var --gsa-accent).
rtlbooleanfalseRight-to-left layout. Default: false.
classNamestringnoneExtra class name applied to the accordion root.

Technical Features

Smooth Height

grid-template-rows animation with no snap.

Single / Multiple

Exclusive or multi-open panel modes.

Icon Styles

Chevron or plus/minus indicators.

4 Variants

Bordered, separated, filled and ghost.