1 | import React from 'react';
|
2 | import type { ReactNode } from 'react';
|
3 | import { NativeProps } from '../../utils/native-props';
|
4 | export declare type IndexBarProps = {
|
5 | sticky?: boolean;
|
6 | onIndexChange?: (index: string) => void;
|
7 | children?: ReactNode;
|
8 | } & NativeProps<'--sticky-offset-top'>;
|
9 | export declare type IndexBarRef = {
|
10 | scrollTo: (index: string) => void;
|
11 | };
|
12 | export 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 |