soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
26 lines (25 loc) • 855 B
TypeScript
/// <reference types="react" />
type RippleAt = (rippleX: number, rippleY: number, autoRemove?: boolean) => (onFinish?: VoidFunction | undefined) => void;
export type RippleHandle = HTMLElement & {
rippleAt?: RippleAt;
};
/**
* Wrapper component for ripple-effect.ts
*/
export declare const Ripple: import("react").ForwardRefExoticComponent<{
/**
* HTML tag name, div by default
*/
as?: keyof JSX.IntrinsicElements | undefined;
children?: React.ReactNode;
disabled?: boolean | undefined;
/**
* In ms
*/
rippleDuration?: number | undefined;
/**
* Any css color string
*/
rippleColor?: string | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "disabled" | "children" | "rippleDuration" | "rippleColor"> & import("react").RefAttributes<RippleHandle>>;
export {};