Skip to content

docs(collapse): add nested collapse example#42125

Open
pavan-sh wants to merge 1 commit intotwbs:mainfrom
pavan-sh:docs/collapse-nested-example
Open

docs(collapse): add nested collapse example#42125
pavan-sh wants to merge 1 commit intotwbs:mainfrom
pavan-sh:docs/collapse-nested-example

Conversation

@pavan-sh
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an example of using the nested Collapse component

1 participant