Navigation Route Label
Represents a Material UI styled label for navigation routes, used to display route names in a navigation container.
Overview
The NavigationRouteLabel
provides a Material UI styled label for navigation routes. It features an icon, a title, and an optional chevron indicator, making it ideal for use in navigation lists or menus.
To use NavigationRouteLabel
, initialize it with a system image and a title key.
Initializer
Creates a label with the specified system image and title.
NavigationRouteLabel(systemImage: String, _ titleKey: String)
Parameters
Parameter
Description
systemImage
The name of the system image to be used as the label's icon.
titleKey
The key for the title text to be displayed.
Example
NavigationRoute {
Container {
Text("Profile View")
}
} label: {
NavigationRouteLabel(systemImage: "arrowshape.turn.up.right.fill", "Navigation Route")
}


Last updated