robust-react-ui
Version:
A React component library, built with a focus on accessibility, extensibility and reusability.
21 lines (20 loc) • 536 B
TypeScript
export interface INavigationDataProps {
parentId: null | number;
id: number;
linkName: string;
linkHref?: string;
children?: INavigationDataProps[];
hasSeparator?: boolean;
}
export interface INavigationBarProps {
data: INavigationDataProps[];
onEnterLinkFunction?: (href: string) => void;
/**
* An accessible label.
*/
ariaLabel: string;
/**
* Provides the component with an id attribute. May be used for accessibility purposes.
*/
id?: string;
}