string | Component
required
The link’s visible content. Can be a plain string or any component.
() => Component
required
A function that returns the view to navigate to when tapped. Must be inside a NavigationStack.
() => Component
required
A function that returns the destination view.
Component
required
A component to use as the link label.
Support
Usage
Simple string label
Component label
Object form
List with navigation links
See Also
- NavigationStack — navigation container
- Button — tappable action (no navigation)