Skip to content

docs(collapse): add nested collapse example - #42125

Merged
mdo merged 1 commit into
twbs:v5-devfrom
pavan-sh:docs/collapse-nested-example
Nov 9, 2026
Merged

mdo merged 1 commit into
twbs:v5-devfrom
pavan-sh:docs/collapse-nested-example

Conversation

@pavan-sh

@pavan-sh pavan-sh commented Mar 8, 2026 •

Copy link
Copy Markdown

Description

Adds a Nested collapse example to the Collapse documentation (site/src/content/docs/components/collapse.mdx). The new section demonstrates a parent collapse containing a nested trigger and nested collapse content for progressive disclosure.

Motivation & Context

Bootstrap supports nested collapse triggers/content, but the docs didn’t include an example. This PR fills that documentation gap and makes the nested pattern easier to discover and copy. (Related: #41895)

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

@julien-deramond julien-deramond added docs Documentation site and its content v5 v5, the v5-dev branch html Component markup: elements, attributes, structure labels Oct 10, 2026
@mdo
mdo merged commit 81a4e22 into twbs:v5-dev Nov 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation site and its content html Component markup: elements, attributes, structure v5 v5, the v5-dev branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an example of using the nested Collapse component

3 participants