reframe/ui
reframe/ui

Command Palette

Search for a command to run...

FIle Tree

Installation

Install Dependencies

Copy and Paste the component

@/components/reframe-ui/file-tree.tsx

Usage

Props

NameTypeDefaultRequiredDescription
elementsFileTreeViewElement[]-NoArray of tree view elements with id, name, and optional children
initialSelectedIdstring-NoID of the initially selected item
initialExpandedItemsstring[][]NoArray of item IDs to be initially expanded
indicatorbooleanNoWhether to show the vertical indicator line for nested items
openIconReact.ReactNode-NoCustom icon for open folders
closeIconReact.ReactNode-NoCustom icon for closed folders
dir"rtl" | "ltr"-NoDirection of the tree view (right-to-left or left-to-right)
classNamestring-NoAdditional CSS classes for styling
© Copyright 2025. All rights reserved.Built by @thommysart