styledsea

Files

Display file structure in your documentation

page.tsx
layout.tsx
page.tsx
global.css
package.json

Usage

Wrap file components in Files.

import { File, Folder, Files } from 'styledsea-docs-interface/components/files';
 
<Files>
  <Folder name="app" defaultOpen>
    <File name="layout.tsx" />
    <File name="page.tsx" />
    <File name="global.css" />
  </Folder>
  <Folder name="components">
    <File name="button.tsx" />
    <File name="tabs.tsx" />
    <File name="dialog.tsx" />
  </Folder>
  <File name="package.json" />
</Files>

File

PropTypeDefault
icon
ReactNode
-
name
string
-

Folder

PropTypeDefault
defaultOpen
boolean
false
name
string
-
disabled
boolean
-

Last updated on

On this page

Edit on GitHub