Accordion

Once opened, you can't close this; only switch to another item.
Attribute Type Documentation Default Value
Required id * :string
class :any
variant :string
type :string "single"
collapsible :boolean true
joined :boolean false
rest :global
Required item * :slot
Show slot attributes Hide slot attributes
Required title * :string
open :boolean
disabled :boolean
<:item title="Always one open" open>Once opened, you can't close this; only switch to another item.</:item>
<:item title="Click me to switch">Now the previous item closed and this one opened.</:item>
<:item title="Or click me">Same behavior: always exactly one open.</:item>