Filler.d.ts 743 B

123456789101112131415161718192021
  1. import * as React from 'react';
  2. export type InnerProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'role' | 'id'>;
  3. interface FillerProps {
  4. prefixCls?: string;
  5. /** Virtual filler height. Should be `count * itemMinHeight` */
  6. height: number;
  7. /** Set offset of visible items. Should be the top of start item position */
  8. offsetY?: number;
  9. offsetX?: number;
  10. scrollWidth?: number;
  11. children: React.ReactNode;
  12. onInnerResize?: () => void;
  13. innerProps?: InnerProps;
  14. rtl: boolean;
  15. extra?: React.ReactNode;
  16. }
  17. /**
  18. * Fill component to provided the scroll content real height.
  19. */
  20. declare const Filler: React.ForwardRefExoticComponent<FillerProps & React.RefAttributes<HTMLDivElement>>;
  21. export default Filler;