MotionThumb.d.ts 505 B

1234567891011121314
  1. import * as React from 'react';
  2. import type { SegmentedValue } from '.';
  3. export interface MotionThumbInterface {
  4. containerRef: React.RefObject<HTMLDivElement>;
  5. value: SegmentedValue;
  6. getValueIndex: (value: SegmentedValue) => number;
  7. prefixCls: string;
  8. motionName: string;
  9. onMotionStart: VoidFunction;
  10. onMotionEnd: VoidFunction;
  11. direction?: 'ltr' | 'rtl';
  12. vertical?: boolean;
  13. }
  14. export default function MotionThumb(props: MotionThumbInterface): React.JSX.Element | null;