---
title: topLevelSections
description: >-
  Notes grouped by top-level folder, in first-seen order, without the home note.
  A folder note (`guides/index.md`) links its section instead of listing in it;
  a folder with only its note is an empty section.
updated_at: '2026-10-04T04:09:12+02:00'
created_at: '2026-09-25T10:30:20+02:00'
symbol:
  kind: function
  name: topLevelSections
  signatures:
    - >-
      topLevelSections<T extends Linked>(entries: readonly T[], folders:
      readonly (Linked & Folder)[]):
      [[reference/api/ui/FolderSection|FolderSection]]<T>[]
  typeParameters:
    - name: T
      constraint: Linked
  parameters:
    - name: entries
      type: 'readonly T[]'
    - name: folders
      type: 'readonly (Linked & Folder)[]'
  returns:
    type: '[[reference/api/ui/FolderSection|FolderSection]]<T>[]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/listing.ts#L83
---

# topLevelSections
