UNPKG

791 BTypeScriptView Raw
1import React from 'react';
2import type { ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type IndexBarProps = {
5 sticky?: boolean;
6 onIndexChange?: (index: string) => void;
7 children?: ReactNode;
8} & NativeProps<'--sticky-offset-top'>;
9export declare type IndexBarRef = {
10 scrollTo: (index: string) => void;
11};
12export declare const IndexBar: React.ForwardRefExoticComponent<{
13 sticky?: boolean | undefined;
14 onIndexChange?: ((index: string) => void) | undefined;
15 children?: ReactNode;
16} & {
17 className?: string | undefined;
18 style?: (React.CSSProperties & Partial<Record<"--sticky-offset-top", string>>) | undefined;
19 tabIndex?: number | undefined;
20} & React.AriaAttributes & React.RefAttributes<IndexBarRef>>;
21
\No newline at end of file