Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

PreviousNext
The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
Holmes and Watson investigate the legend of a demonic hound haunting the Baskerville family. Set in the eerie Dartmoor moorlands, the story involves betrayal and greed.

Installation

1

Run the CLI

Use the CLI to add the component to your project.

Loading...

Examples

basic

The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
Holmes and Watson investigate the legend of a demonic hound haunting the Baskerville family. Set in the eerie Dartmoor moorlands, the story involves betrayal and greed.

multiple

The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
Holmes and Watson investigate the legend of a demonic hound haunting the Baskerville family. Set in the eerie Dartmoor moorlands, the story involves betrayal and greed.

multiple last not collapsible

The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
The first case of Sherlock Holmes and Dr. Watson. They investigate a murder in London, which leads to a backstory involving Mormons in the U.S. Introduces Holmes’s deductive method.
Holmes and Watson investigate the legend of a demonic hound haunting the Baskerville family. Set in the eerie Dartmoor moorlands, the story involves betrayal and greed.

API Reference

z-accordion Component

z-accordion is a component that displays a list of collapsible content sections.

Property Description Type Default
[class] Custom CSS classes string ''
[zType] Single or multiple items can be opened 'single' | 'multiple' 'single'
[zCollapsible] Whether accordion items can be collapsed boolean true
[zDefaultValue] Item value(s) of the accordion's item(s) to be opened by default string | string[] ''

z-accordion-item Component

z-accordion-item represents a single section in the accordion.

Property Description Type Default
[class] Custom CSS classes string ''
[zTitle] The title for item header string ''
[zValue] Unique value of the accordion item string ''