interface CommonProps {
    actionButtons?: [ActionButtonProps?, ActionButtonProps?, ActionButtonProps?];
    ariaLabel?: string;
    buttonAlignment?: "bottom" | "top" | "center";
    choices: (Element | NavBarChoice)[];
    elevated?: boolean;
    href?: string;
    logoAlt?: string;
    logoAriaLabel?: string;
    logoHref?: string;
    logoLinkComponent?: ElementType<any, (keyof IntrinsicElements)>;
    rel?: string;
    reloadDocument?: boolean;
    routerNavLinkComponent: ElementType<any, keyof IntrinsicElements>;
    sx?: SxProps<Theme>;
    target?: string;
    to?: unknown;
}

Hierarchy

  • Omit<NavigationProps, ExcludedNavigationProps>
    • CommonProps

Properties

Optional buttons on the right of the AppBar. Max 3 buttons.

ariaLabel?: string

Aria label attribute for enhanced accessibility.

buttonAlignment?: "bottom" | "top" | "center"

Specifies the position of the navigation buttons in the navigation rail.

choices: (Element | NavBarChoice)[]

List of navigation choice objects ({ name, route, icon, hasBadge }) to display, could be objects or react elements.

elevated?: boolean

Adjusts the shadow effect and border appearance on top/bottom of the navigation.

href?: string

The URL that the hyperlink points to.

logoAlt?: string

Alternate text for the logo image.

logoAriaLabel?: string

Aria-label for the logo image for accessibility.

logoHref?: string

URL where the logo link points to.

logoLinkComponent?: ElementType<any, (keyof IntrinsicElements)>

Component for managing the navigation of the logo link. For example nav link from "react-router-dom" or equivalent from other routing library.

rel?: string

Specifies the relationship between the current document and the linked document.

reloadDocument?: boolean

Reloads document on link click.

routerNavLinkComponent: ElementType<any, keyof IntrinsicElements>

Component for managing the navigation links. For example nav link from "react-router-dom" or equivalent from other routing library.

sx?: SxProps<Theme>

The system prop that allows defining system overrides as well as additional CSS styles.

target?: string

Specifies where to open the linked document.

to?: unknown

The 'to' prop can be used for routing in single page applications.