@yarcl/react
    Preparing search index...

    Function TreeView

    • An accessible hierarchy with independent focus, expansion and single or multiple selection. Arrow keys navigate, Home/End move to the edges, typing finds visible labels, and Enter/Space select.

      Type Parameters

      • const V extends string = string

      Parameters

      Returns Element

      <TreeView aria-label="Files" defaultExpanded={['projects']}
      items={[{ id: 'projects', label: 'Projects', children: [{ id: 'readme', label: 'README' }] }]} />