UNPKG

919 BTypeScriptView Raw
1import * as React from 'react';
2import { InternalStandardProps as StandardProps } from '..';
3import { TouchRippleClasses, TouchRippleClassKey } from './touchRippleClasses';
4
5export { TouchRippleClassKey };
6
7export interface StartActionOptions {
8 pulsate?: boolean;
9 center?: boolean;
10}
11
12export 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
22export type TouchRippleProps = StandardProps<React.HTMLAttributes<HTMLElement>> & {
23 center?: boolean;
24 /**
25 * Override or extend the styles applied to the component.
26 */
27 classes?: Partial<TouchRippleClasses>;
28};
29
30declare const TouchRipple: React.ForwardRefRenderFunction<TouchRippleActions, TouchRippleProps>;
31
32export default TouchRipple;