We are currently in alpha version.
Please expect changes. If you find any issues, please report them on our github.
Accordion
Accordions allow users to expand and collapse sections of content. They provide a way to display and manage information in a compact and visually appealing way.
Basic accordion
Preview
Code
Content for Accordion 1
Content for Accordion 2
Content for Accordion 3
Optional properties
Property | Type | Description |
---|---|---|
|
|
|
|
| Sets the icon for the accordion header. Default is |
|
| Defines whether multiple accordions can be open at the same time. |
Usages
Usage
Supported directives
These are optional directives for accordion content header only
Selector | Directive name | Description |
---|---|---|
| ZapIconDirective | A directive that enables adding any type of icon to a button, including SVGs, font-based icons, and more. |
Example
Preview
Code
Content for Accordion 1
Content for Accordion 2
Content for Accordion 3
Global configurations
A list of global styles, including shape, size, color, font sizes, font weights, and letter spacing can be provided via themeLibrary
in the provideZapOption
provider.. If you have multi theme setup, you can also provide theme specific colors. These apply to all default variants through out the app unless component level styles are provided.
Example
app.config.ts
Colors
You can provide each of these colors for different themes that you use
Property | Description |
---|---|
| Text color of the header. |
| Border color of the item (divider) |
| Background color of the header |
| Text color of the header on hover |
| Text color of the content |
| Background color of the content |
Other styles
You can provide a bunch of other styles, that are not theme based but rather generic
Property | Description |
---|---|
| Left padding of the header |
| Top padding of the header |
| Bottom padding of the header |
| Left padding of the button. |
| Right padding of the content |
| Top padding of the content |
| Bottom padding of the content |
| Padding of the header |
| Padding of the content |