You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Files component for displaying file tree structures
2
+
3
+
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.
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.
Add the `href` property to make files or folders clickable. This is useful for linking to GitHub repositories, documentation pages, or other resources.
98
+
Add the `href` property to make files or folders clickable. This is useful for linking to documentation pages, GitHub repositories, or other resources.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/component-library/default-components/overview.mdx
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: 'Components overview'
3
3
description: 'Built-in components for creating interactive documentation'
4
4
---
5
5
6
-
Fern includes 21 built-in components for creating interactive documentation. Select a component below to view usage examples and configuration options.
6
+
Fern includes 22 built-in components for creating interactive documentation. Select a component below to view usage examples and configuration options.
7
7
8
8
<CardGroupcols={3}>
9
9
<Card
@@ -97,6 +97,13 @@ Fern includes 21 built-in components for creating interactive documentation. Sel
97
97
>
98
98
Endpoint schema snippets from your API Reference
99
99
</Card>
100
+
<Card
101
+
title="Files"
102
+
icon="fa-duotone fa-folder-tree"
103
+
href="/docs/writing-content/components/files"
104
+
>
105
+
Display interactive file tree structures with expandable folders
0 commit comments