FileExtractor.extractProps()method

extractProps(name: string, content: string): Partial<TreeElementProps> & { name: string }

Build the file element props from the extracted content.

  • name is the basename without extension (e.g. "array") — display-ready, used by menus, cards, and URL paths.
  • Override to parse text into richer elements (content/children/description) and to set
    title if a confident title is available.