@rws-air/webcomponents
Version:
Standard Webcomponents for AIR projects
27 lines • 1.21 kB
TypeScript
import { AppBarProps, TabsProps, ToolbarProps } from '@mui/material';
import React, { SyntheticEvent } from 'react';
import { ActionBarProps } from '../ActionBar';
import { LinkTabProps } from '../LinkTab';
export interface NavBarProps {
/** The tabs to render */
tabs: LinkTabProps[];
/** The title to show in the ActionBar */
actionBarTitle: string;
/**
* The currently active tab
* Preferably managed in local state
*/
activeTab: number;
/** Function to trigger when changing tabs */
onTabChange(_event: SyntheticEvent<Element, Event>, newValue: number): void;
/** Additional props to pass to the AppBar component */
AppBarProps?: AppBarProps;
/** Additional props to pass to the Toolbar component */
ToolbarProps?: ToolbarProps;
/** Additional props to pass to the Tabs component */
TabsProps?: TabsProps;
/** Additional props to pass to the ActionBar component */
ActionBarProps?: ActionBarProps;
}
export declare const NavBar: React.MemoExoticComponent<({ ActionBarProps, AppBarProps, TabsProps, ToolbarProps, actionBarTitle, activeTab, onTabChange, tabs }: NavBarProps) => JSX.Element>;
//# sourceMappingURL=index.d.ts.map