1 | import * as React from 'react';
|
2 | import { InternalStandardProps as StandardProps } from '..';
|
3 | import { TouchRippleClasses, TouchRippleClassKey } from './touchRippleClasses';
|
4 |
|
5 | export { TouchRippleClassKey };
|
6 |
|
7 | export interface StartActionOptions {
|
8 | pulsate?: boolean;
|
9 | center?: boolean;
|
10 | }
|
11 |
|
12 | export interface TouchRippleActions {
|
13 | start: (
|
14 | event?: React.SyntheticEvent,
|
15 | options?: StartActionOptions,
|
16 | callback?: () => void,
|
17 | ) => void;
|
18 | pulsate: (event?: React.SyntheticEvent) => void;
|
19 | stop: (event?: React.SyntheticEvent, callback?: () => void) => void;
|
20 | }
|
21 |
|
22 | export type TouchRippleProps = StandardProps<React.HTMLAttributes<HTMLElement>> & {
|
23 | center?: boolean;
|
24 | |
25 |
|
26 |
|
27 | classes?: Partial<TouchRippleClasses>;
|
28 | };
|
29 |
|
30 | declare const TouchRipple: React.ForwardRefRenderFunction<TouchRippleActions, TouchRippleProps>;
|
31 |
|
32 | export default TouchRipple;
|