Skip to content

Collapsible ​

<details> based

Content most readers can skip — an FAQ answer, advanced options, a long spec — behind a title that opens it. Several with the same name make an accordion where one is open at a time. Don't hide anything most people need.

Basic
Standalone collapsible
Native <details>; open = false
Disabled
hidden
  • Native <details>: Enter or Space toggles it, find-in-page opens it on a match, and it works before any script runs.
  • v-model:open follows it both ways. name groups them (the browser closes the others).
  • #title for a title with markup; disabled keeps it shut.

Usage ​

ts
import { BlessCollapsible } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
titlestring—
namestring—native exclusive-open group (details name=)
disabledboolean—
openbooleanfalse

Events

NamePayloadDescription
update:open[value: boolean]

Slots

NameScopeDescription
title—
default—

Released under the MIT License. Character names and artwork belong to their owners.