Collapse

This is the collapsible content area.
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

Additional CSS classes

open :boolean

Whether the collapse is initially open

false
disabled :boolean

Whether the collapse is disabled

false
variant :string

Visual style variant

color :string

Color variant for the trigger

size :string

Size variant

animation :string

Animation style for the content

speed :string

Transition speed

nested :boolean

Nested collapse with indent and left border

false
rest :global
Required trigger * :slot

Trigger element that toggles the collapse

<:trigger>Click to expand</:trigger>
<:content>This is the collapsible content area.</:content>
Required content * :slot

Collapsible content area

<:trigger>Click to expand</:trigger>
<:content>This is the collapsible content area.</:content>