Tree

import { ancestors, base, dir, filter, group, language, put, rows, sort, step } from '@hanzo/ui/agents'

No examples yet.

Types

export interface Entry {
/** Repo-relative, no leading slash: `src/app.tsx`. */
path: string
kind: 'file' | 'dir'
}
export type Listing = Map<string, Entry[]>
export interface Row {
path: string
name: string
kind: 'file' | 'dir'
depth: number
/** A directory that is expanded. */
open: boolean
/** The parent directory's path — what Left moves to. */
parent: string
}
export interface Move {
/** The row index that has focus afterwards. */
focus: number
/** A directory to expand or collapse. */
toggle?: string
/** A file to open. */
pick?: string
}

Exports

ancestorsbasedirfiltergrouplanguageputrowssortsteptype Entrytype Listingtype Movetype Row