Download the PHP package mrshanebarron/accordion without Composer
On this page you can find all versions of the php package mrshanebarron/accordion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrshanebarron/accordion
More information about mrshanebarron/accordion
Files in mrshanebarron/accordion
Download mrshanebarron/accordion
More information about mrshanebarron/accordion
Files in mrshanebarron/accordion
Vendor mrshanebarron
Package accordion
Short Description Collapsible accordion component for Laravel - supports Livewire and Vue
License MIT
Package accordion
Short Description Collapsible accordion component for Laravel - supports Livewire and Vue
License MIT
Please rate this library. Is it a good library?
Informations about the package accordion
Accordion
Expandable content sections with smooth animations for Laravel applications. Supports single or multiple open panels, default open state, and custom styling. Works with Livewire and Vue 3.
Installation
Livewire Usage
Basic Usage
Default Open
Multiple Open Panels
Livewire Props
| Prop | Type | Default | Description |
|---|---|---|---|
items |
array | [] |
Array of accordion items with title and content keys |
multiple |
boolean | false |
Allow multiple panels open simultaneously |
defaultOpen |
string | null |
Key of item to open by default |
Item Structure
Vue 3 Usage
Setup
Basic Usage
With Default Open
Multiple Open
Vue Props
SbAccordion
| Prop | Type | Default | Description |
|---|---|---|---|
multiple |
Boolean | false |
Allow multiple panels open |
defaultOpen |
String | null |
ID of default open panel |
SbAccordionItem
| Prop | Type | Default | Description |
|---|---|---|---|
id |
String | auto | Unique identifier |
title |
String | required | Panel header text |
disabled |
Boolean | false |
Disable panel toggle |
Events
Livewire
Vue
Styling
The accordion uses Tailwind CSS classes with:
- Smooth expand/collapse animations via Alpine.js x-collapse
- Rounded corners and subtle shadows
- Hover states on headers
- Chevron icon rotation on open
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x
- Alpine.js (for animations)
License
MIT License
All versions of accordion with dependencies
PHP Build Version
Package Version
The package mrshanebarron/accordion contains the following files
Loading the files please wait ...