Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/JumpLinks/JumpLinks.d.ts

raw
1 /// <reference types="react" />
2 export interface JumpLinksProps extends Omit<React.HTMLProps<HTMLElement>, 'label'> {
3 /** Whether to center children. */
4 isCentered?: boolean;
5 /** Whether the layout of children is vertical or horizontal. */
6 isVertical?: boolean;
7 /** Label to add to nav element. */
8 label?: React.ReactNode;
9 /** Flag to always show the label when using `expandable` */
10 alwaysShowLabel?: boolean;
11 /** Adds an accessible label to the internal nav element. Defaults to the value of the label prop. */
12 'aria-label'?: string;
13 /** Reference to the scrollable element to spy on. Takes precedence over scrollableSelector. Not passing a scrollableRef or scrollableSelector disables spying. */
14 scrollableRef?: HTMLElement | (() => HTMLElement) | React.RefObject<HTMLElement | null>;
15 /** Selector for the scrollable element to spy on. Not passing a scrollableSelector or scrollableRef disables spying. */
16 scrollableSelector?: string;
17 /** The index of the child Jump link to make active. */
18 activeIndex?: number;
19 /** Children nodes */
20 children?: React.ReactNode;
21 /** Offset to add to `scrollPosition`, potentially for a masthead which content scrolls under. */
22 offset?: number;
23 /** When to collapse/expand at different breakpoints */
24 expandable?: {
25 default?: 'expandable' | 'nonExpandable';
26 sm?: 'expandable' | 'nonExpandable';
27 md?: 'expandable' | 'nonExpandable';
28 lg?: 'expandable' | 'nonExpandable';
29 xl?: 'expandable' | 'nonExpandable';
30 '2xl'?: 'expandable' | 'nonExpandable';
31 };
32 /** On mobile whether or not the JumpLinks starts out expanded */
33 isExpanded?: boolean;
34 /** Aria label for expandable toggle */
35 toggleAriaLabel?: string;
36 /** Class for nav */
37 className?: string;
38 /** Whether the current entry in the navigation history should be replaced when a JumpLinksItem is clicked. By default a new entry will be pushed to the navigation history. */
39 shouldReplaceNavHistory?: boolean;
40 /** Custom ID applied to label if alwaysShowLabel is applied, or expandable toggle. This is used for internal logic related to aria-label and aria-labelledby */
41 labelId?: string;
42 }
43 export declare const JumpLinks: React.FunctionComponent<JumpLinksProps>;
44 //# sourceMappingURL=JumpLinks.d.ts.map