Files component for displaying file tree structures
The new <Files> component creates visual file tree structures with expandable folders and nested files. Use it to show project structures, directory layouts, or any hierarchical file organization in your documentation.
components
accordion.mdx
button.mdx
card.mdx
tabs.mdx
assets
markdown.mdx
README.md# Contribute to the docs
markdown.mdx
README.md
The component consists of three parts: <Files> as the container, <Folder> for directories that can be expanded or collapsed, and <File> for individual files. Folders and files support optional href properties to make them clickable links, and folders can use defaultOpen to start expanded when the page loads.
Markdown
Read more in the Files component documentation.