Reference Source
import {Accordion} from '@adobe/coral-spectrum'
public class | source

AccordionItem

Expression Extends:

class AccordionItem extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A Accordion item component

See:

Example:

Markup
<coral-accordion-item></coral-accordion-item>
JS constructor
new Coral.Accordion.Item();

Member Summary

Public Members
public

The content of this accordion item.

public

Whether this item is disabled.

public

The label of this accordion item.

public

The heading level for the Accordion item

  • 3 by default.

public

Whether the item is selected.

Public Members

public content: AccordionItemContent source

The content of this accordion item.

  • content-zone

public disabled: Boolean source

Whether this item is disabled.

  • false by default.
  • reflected

public label: AccordionItemLabel source

The label of this accordion item.

  • content-zone

public level: Number source

The heading level for the Accordion item

  • 3 by default.
  • reflected

public selected: Boolean source

Whether the item is selected. If the item has an element with the coral-interactive attribute and is clicked, then the toggling of the accordion item will not occur.

  • false by default.
  • reflected