UNPKG

794 BTypeScriptView Raw
1import * as React from 'react';
2export interface JumpLinksItemProps extends Omit<React.HTMLProps<HTMLLIElement>, 'onClick'> {
3 /** Whether this item is active. Parent JumpLinks component sets this when passed a `scrollableSelector`. */
4 isActive?: boolean;
5 /** Href for this link */
6 href?: string;
7 /** Selector or HTMLElement to spy on */
8 node?: string | HTMLElement;
9 /** Text to be rendered inside span */
10 children?: React.ReactNode;
11 /** Click handler for anchor tag. Parent JumpLinks components tap into this. */
12 onClick?: (ev: React.MouseEvent<HTMLAnchorElement>) => void;
13 /** Class to add to li */
14 className?: string;
15}
16export declare const JumpLinksItem: React.FunctionComponent<JumpLinksItemProps>;
17//# sourceMappingURL=JumpLinksItem.d.ts.map
\No newline at end of file