Skip to content

NavigationRailLabelType

Inherits: Enum

Defines how destination labels are shown in a NavigationRail.

This setting affects the non-extended rail layout (extended). When the rail is extended, labels are shown next to icons regardless of this value.

Properties

  • ALL

    Shows labels for all destinations.

  • NONE

    Hides labels for all destinations.

  • SELECTED

    Shows the label only for the selected destination.

Properties#

ALL = 'all' class-attribute instance-attribute #

Shows labels for all destinations.

NONE = 'none' class-attribute instance-attribute #

Hides labels for all destinations.

Only destination icons are shown.

SELECTED = 'selected' class-attribute instance-attribute #

Shows the label only for the selected destination.

As selection changes, the visible label transitions to the newly selected destination.