4.32.2

Accordion (single)

Toggle the display of a single section of expandable content

Demo

API

Tag

Name Description
<s-accordion-single> Custom tag, accepts a slot and a single div as content

Slots

Name Required Description
title

Title text

Attributes/Props

Name Value Required Description
open Boolean

When present, expands the accordion's content area.

Events

Name Detail Description
s-toggle The accordion's oldState and newState are available on e.detail

Fired when the accordion is toggled.

Demo

API

Tag

Name
<SAccordionSingle>

Slots

Name Required Description
title

Title text

Props

Name Value Required Description
open Boolean

When present, expands the accordion's content area.

onS-toggle Function

Handles the s-toggle event fired when the user toggles the accordion. The accordion's oldState and newState are available on e.detail.

Skylab React links

General information about using our React package

Guidelines

Adjusting spacing

Use util padding/margin classes (as shown in the code sample) to increase spacing between the accordion trigger and the expanded content below.

Design

Design resources can be found on the Skylab design documentation site: skylab.avalara.com