Collapse

Expand and collapse content panels with multiple visual styles.

Collapse

Default

Wrap sections in s-collapse-item with a header slot.

Accordion

Keep only one panel open at a time with accordion.

Type

Switch container style using the type prop.

Open Hover

Open panels on hover instead of click.

Change Arrow Icon

Use the icon-arrow slot with SIcon to customize the expand arrow per panel.

API

PROPS

Property
Type
Values
Description
default
Example
More
accordion
Boolean
truefalse
Only one panel open at a time.
false
type
String
defaultbordermarginshadow
Visual variant.
shadow
open-hover
Boolean
truefalse
Open panel on hover.
false

EVENTS

Event
Type
Description
default
Example
More
change
—
Emitted when open panels change.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
default
-
Render the panel content or its clickable heading.
—
—
header
-
Render the panel content or its clickable heading.
—
—
icon-arrow
{ open: boolean; disabled: boolean }
Render a custom expand icon from the current panel state.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied