interface NavigationBarProps {
    backgroundColor?: "primary" | "secondary";
    centerElement?: {
        badges?: (null | BadgeProps)[];
        icons: IconProps[];
        links?: Omit<LinkProps, "children" | "onNavigate">[];
        type: "icons";
    } | {
        buttons: ButtonProps[];
        links?: Omit<LinkProps, "children" | "onNavigate">[];
        type: "buttons";
    } | {
        type: "text";
        value: string;
    };
    className?: string;
    hideBorder?: boolean;
    leftElement?: ReactNode;
    onNavigate?: ((href) => void);
    rightElement?: ReactNode;
    screenMode?: "desktop" | "mobile";
}

Properties

backgroundColor?: "primary" | "secondary"

Background color of sidebar

centerElement?: {
    badges?: (null | BadgeProps)[];
    icons: IconProps[];
    links?: Omit<LinkProps, "children" | "onNavigate">[];
    type: "icons";
} | {
    buttons: ButtonProps[];
    links?: Omit<LinkProps, "children" | "onNavigate">[];
    type: "buttons";
} | {
    type: "text";
    value: string;
}

Elements of navigation bar

Type declaration

Type declaration

Type declaration

  • type: "text"
  • value: string
className?: string

Custom class to give the html component

hideBorder?: boolean

Hide bottom border of the navigation bar (default false)

leftElement?: ReactNode

Navigation bar logo

onNavigate?: ((href) => void)

Callback for navigation links

Type declaration

    • (href): void
    • Callback for navigation links

      Parameters

      • href: string

      Returns void

rightElement?: ReactNode

Right element

screenMode?: "desktop" | "mobile"

Type of nav bar to display (configures spacing and sizing)

Generated using TypeDoc