MaterialUIKit
Github
  • MaterialUIKit
  • Essentials
    • Configuring and Personalizing
    • Defining a Custom Color Schemes
  • Configuration and Color Schemes
    • MUIKitConfiguration
    • MUIKitColorScheme
  • Components
    • Action Button
      • ActionButtonStyle
    • Checkbox
    • Collection
      • CollectionStyle
    • Container
    • Date Selector
    • Dialog
    • Dialog Sheet
    • Dropdown Menu
      • Dropdown Menu Label
    • FAB
    • Icon Button
      • IconButtonStyle
    • Navigation Container
      • NavigationContainerHeaderStyle
      • Navigation Route
      • Navigation Route Label
    • Progress Bar
    • Radio Buttons Group
    • Search Box
    • Secure Text Box
    • Segmented Buttons
    • Separator
      • SeparatorOrientationStyle
    • Snackbar
    • Switch
    • Time Selector
    • Text Box
    • Tab Bar
      • TabBar Item
Powered by GitBook
On this page
  • Overview
  • Initializer
  • Parameters
  • Example
  1. Components
  2. Navigation Container

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")
}
PreviousNavigation RouteNextProgress Bar

Last updated 10 months ago