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
| Prop | Type | Required | Description |
|---|---|---|---|
data | Item[] | Yes | Top-level tree nodes. |
getChildren | (item: Item) => Item[] | undefined | Yes | Returns child nodes for a given item. |
getKey | (item: Item) => string | Yes | Stable key extractor. |
renderItem | (item: Item) => ReactNode | Yes | Renderer 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.
NavigationStack
NavigationStack is a container that manages a stack of views for navigation. NavigationStack provides navigation functionality similar to iOS navigation controllers, allowing users to navigate forward and backward through a hierarchy of views.
StandardPage
StandardPage is the default page container used in NavigationStack. It provides a standard page layout and can optionally display a navigation bar with title and toolbar items.