SwiftUI.js
Components

OutlineGroup

OutlineGroup renders hierarchical content as an expandable outline, aligned with SwiftUI's tree presentation.

OutlineGroup renders hierarchical content as an expandable outline, aligned with SwiftUI's tree presentation.

Examples

Default

Preview unavailable for this example in the static docs build.

Show code
<OutlineGroup
      data={tree}
      getChildren={(item) => item.children}
      getKey={(item) => item.id}
      renderItem={(item) => item.title}
    />

API

PropTypeRequiredDescription
dataItem[]YesTop-level tree nodes.
getChildren(item: Item) => Item[] | undefinedYesReturns child nodes for a given item.
getKey(item: Item) => stringYesStable key extractor.
renderItem(item: Item) => ReactNodeYesRenderer for each tree item label.

Inherits additional props from IBaseComponent.

Overview

OutlineGroup renders hierarchical content as an expandable outline, aligned with SwiftUI's tree presentation.

On this page