ComponentsCollapse

Collapse

Reveal optional content without leaving the current view.

Example

Review checklist

Confirm that reviewers can open the linked files.

Review notes

Include a short decision summary and a named owner for each open question.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

File tree

Expand a folder to reveal its contents.

Example
Design handoff
  • Project brief
  • Interaction notes
  • Review checklist

Usage

SemanticsUse a single native details element and put its label in summary. Add open when the content starts visible.
MotionCombine ilui-accordion with the shared disclosure styles. Browsers that cannot animate the height retain native disclosure behavior.