Skip to Content

Navigation

The NavigationBar component renders a themed list of links for navigation. It was added in 10.0.0.

Quick Start

To start using the NavigationBar component, import it from reablocks.

API

NameTypeDefault
classNamestring

Custom class names for the navigation bar and its sections.

classNameStartstring

Custom class names for the top section of the navigation bar.

classNameNavigationstring

Custom class names for the navigation section.

classNameEndstring

Custom class names for the bottom section of the navigation bar.

directionkeyof NavigationBarDirectionTheme

Direction of the navigation bar layout.

'vertical'
startReactNode

Content to be displayed at the start of the navigation bar.

endReactNode

Content to be displayed at the end of the navigation bar.

themeNavigationTheme

Theme overrides for the navigation bar.

NameTypeDefault
classNamestring

Custom class names for the navigation button.

variantkeyof NavigationButtonVariantTheme

Variant of the navigation button.

'ghost'
activeboolean

Indicates if the button is active.

themeNavigationTheme

Custom theme for the navigation button.

disabledboolean

Disables the button, preventing interaction.

animatedboolean

If false, the animation of the button will be disabled.

true
animationLayoutIdstring

Unique identifier for the animation layout.

onClick() => void

Callback function to handle click events on the button.

Design and Usability Tips

  • Highlight Current Location: Always indicate the active item so users know where they are in the application.
  • Keep Labels Short: Aim for one or two words per item; long labels make scanning slow.
Last updated on