FileTree

FileTree and FileTreeItem render a nested folder-and-file diagram with glyphs, comments, and highlights : the docs-friendly answer to "show me the layout." Fully static markup, no JS.

Basic use

Comments

Comment renders a muted annotation after the file name : great for calling out what a file is for.

Highlight

Set Highlight="true" on any item to give it an accent background : useful for pointing at what a step created or what the reader should focus on.

Deep nesting

There's no depth cap : nest as far as needed. The glyph size and indentation stay consistent.

Props

FileTree

Prop Type Default Description
No props documented.

FileTreeItem

Prop Type Default Description
NameRequired string File or folder name displayed on the row.
Comment string? Muted annotation displayed after the name.
Highlight bool false Emphasizes the row with an accent background.
ChildContent RenderFragment? Nested items. Only rendered when `IsFolder` is true.

See also