amis-rpc-design/node_modules/rc-tabs/es/hooks/useIndicator.d.ts

14 lines
414 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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;