index.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import * as React from 'react';
  2. import type { GetIndicatorSize } from '../hooks/useIndicator';
  3. import type { AnimatedConfig, EditableConfig, MoreProps, OnTabScroll, RenderTabBar, TabBarExtraContent, TabPosition, TabsLocale } from '../interface';
  4. export interface TabNavListProps {
  5. id: string;
  6. tabPosition: TabPosition;
  7. activeKey: string;
  8. rtl: boolean;
  9. animated?: AnimatedConfig;
  10. extra?: TabBarExtraContent;
  11. editable?: EditableConfig;
  12. more?: MoreProps;
  13. mobile: boolean;
  14. tabBarGutter?: number;
  15. renderTabBar?: RenderTabBar;
  16. className?: string;
  17. style?: React.CSSProperties;
  18. locale?: TabsLocale;
  19. onTabClick: (activeKey: string, e: React.MouseEvent | React.KeyboardEvent) => void;
  20. onTabScroll?: OnTabScroll;
  21. children?: (node: React.ReactElement) => React.ReactElement;
  22. getPopupContainer?: (node: HTMLElement) => HTMLElement;
  23. popupClassName?: string;
  24. indicator?: {
  25. size?: GetIndicatorSize;
  26. align?: 'start' | 'center' | 'end';
  27. };
  28. }
  29. declare const TabNavList: React.ForwardRefExoticComponent<TabNavListProps & React.RefAttributes<HTMLDivElement>>;
  30. export default TabNavList;