carbon-react
Version:
A library of reusable React components for easily building user interfaces.
16 lines (15 loc) • 682 B
TypeScript
import React from "react";
import { TagProps } from "../../__internal__/utils/helpers/tags";
export interface AnchorNavigationProps extends TagProps {
/** Child elements */
children?: React.ReactNode;
/** The AnchorNavigationItems components to be rendered in the sticky navigation.
It is important to maintain proper structure.
List of AnchorNavigationItems has to be wrapped in React.Fragment */
stickyNavigation?: React.ReactNode;
}
declare const AnchorNavigation: {
({ children, stickyNavigation, "data-element": dataElement, "data-role": dataRole, }: AnchorNavigationProps): JSX.Element;
displayName: string;
};
export default AnchorNavigation;