Content
File Tree
A collapsible tree of folders and files with optional badges, for showing what a coding agent touched.
Group: Content. Exports: FileTree. Halaska addition with no shadcn/ui equivalent.
Usage
import { FileTree } from "./halaska-kit";
FileTree props
dataarray(default []):styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Every row is a native button. Enter or Space opens and closes a folder, and folders set aria-expanded.
- The contents of a closed folder are hidden from assistive technology and from Tab.
- There are no tree or treeitem roles, and arrow keys do not move through the tree. Use Tab.
- File rows are focusable but do nothing when activated.
Halaska UI · Components · Patterns · Screens · Install