Skip to content

AccordionItem

<ts-accordion-item> vv0.4.0

The ts-accordion-item component.

Open in Storybook for interactive demos.

<ts-accordion-item>Content</ts-accordion-item>
PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseDisables toggling.
headingheadingstring | undefinedHeader text for the item.
openopenbooleanfalseWhether the item is expanded.
EventDetailBubblesComposedDescription
tsToggle{ open: boolean; }YesYesEmitted when the item is toggled.
NameDescription
*(default)*Default slot for panel content.
headerCustom header content (replaces heading text).

Use ::part() to style internal elements:

PartDescription
headerThe header button.
panelThe content panel.
ts-accordion-item::part(header) {
/* your custom styles */
}
<ts-accordion-item>Content</ts-accordion-item>
import { TsAccordionItem } from '@tessera-ui/react';
<TsAccordionItem>Content</TsAccordionItem>