AisAccordion
The AisAccordion utilizes a group of AisCard components to create collapsible and expandable sections to help organize and present content in a compact manner. Use the variant, outline, rounded, and arrows props to customize the look of your accordion.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ultrices urna vitae justo tincidunt, eget lacinia sem commodo. Phasellus sed quam at lectus laoreet viverra. Vivamus tincidunt scelerisque faucibus. In maximus nisi in sapien pharetra, non vestibulum dui ultrices. Morbi a mi risus. Nunc vel ipsum sed metus aliquam lacinia. Ut et ligula vestibulum, ultrices sapien a, hendrerit nunc. Praesent luctus diam sit amet libero tristique, eget malesuada nisl efficitur. Sed finibus metus sed finibus pharetra. Aenean cursus, massa id tincidunt laoreet, enim urna bibendum odio, ut dapibus purus ex vel risus.
Component Reference
Props
Property | Type(s) | Required | Default | Description | Deprecated |
|---|---|---|---|---|---|
| arrows | Boolean | false | When true, an arrow icon will be displayed next to each card header | false | |
| defaultIndex | Number | 0 | The index of the card that should default as opened | false | |
| gap | Array, String | () => [] | Use the gap prop to control spacing between the cards. The prop expects one of the Tailwind CSS gap
classes (e.g. gap-1, gap-10, etc...); see:
https://tailwindcss.com/docs/gap. | false | |
| outline | Boolean | false | Applies one of the theme color variants to the border instead of the background. | false | |
| rounded | Boolean, String | false | Applies rounded corners using
TailwindCSS's rounded classes | false | |
| variant | String | undefined | Applies one of the theme color variants to the component Valid values: primary, secondary, default, info, success, warning, danger, plain | false |
Slots
Name | Scoped | Description |
|---|---|---|
| default | No | Slot for the cards that will be in the accordion |
Events
Event | Arguments | Description |
|---|---|---|