Source

admin-bro-design-system/src/organisms/navigation/navigation-props.ts

import {
  NavigationElementProps,
} from '../../molecules/navigation-element/navigation-element-props'

/**
 * Array of navigation elements. Extending {@link NavigationElementProps}
 *
 * @memberof Navigation
 * @alias NavigationElementWithChildrenProps
 */
export type NavigationElementWithChildrenProps = NavigationElementProps & {
  elements?: Array<NavigationElementWithChildrenProps>,
}

/**
 * Props passed to {@link Navigation} component
 *
 * @memberof Navigation
 * @alias NavigationProps
 */
export type NavigationProps = {
  label: string;
  elements: Array<NavigationElementWithChildrenProps>;
}
SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers