amis-rpc-design/node_modules/rc-tabs/lib/hooks/useIndicator.d.ts
2023-10-07 19:42:30 +08:00

14 lines
414 B
TypeScript

import type React from 'react';
import type { TabOffset } from '../interface';
export type GetIndicatorSize = number | ((origin: number) => number);
export type UseIndicator = (options: {
activeTabOffset: TabOffset;
horizontal: boolean;
rtl: boolean;
indicatorSize: GetIndicatorSize;
}) => {
style: React.CSSProperties;
};
declare const useIndicator: UseIndicator;
export default useIndicator;