Inhalt v1.0.0

Akkordeon

Ausklappbare Inhaltsbereiche zur übersichtlichen Organisation von Informationen. Verfügbar als einfache Variante (einzeln geöffnet), immer-offen (mehrere gleichzeitig) und verschachtelt.

Einfach

Es kann jeweils nur ein Element geöffnet sein

Optionen

Name Typ Standard Beschreibung
items * Array erforderlich Array of hashes with :title and :content keys
default_open Integer nil Index of initially open item (nil for all closed)
class String "" Additional CSS classes for the container

Immer offen

Mehrere Elemente können gleichzeitig geöffnet sein

Optionen

Name Typ Standard Beschreibung
items * Array erforderlich Array of hashes with :title and :content keys
default_open Array [] Array of indices for initially open items
class String "" Additional CSS classes for the container

Verschachtelt

Akkordeon innerhalb eines Akkordeons für hierarchische Inhalte

Optionen

Name Typ Standard Beschreibung
items * Array erforderlich Array of hashes with :title and :content (can include nested accordion)
default_open Array [] Array of indices for initially open items
class String "" Additional CSS classes for the container

Änderungsprotokoll v1.0.0

- v1.0.0: Initial release with basic, always-open, and nested variants
- Full keyboard accessibility
- Stimulus controller for state management

Vollzugang erhalten

Schalte den Quellcode für diese und alle anderen Komponenten frei. Einmalige Zahlung für lebenslangen Zugang.

Jetzt Zugang erhalten