ant-design/components/_util/wave/interface.ts

18 lines
417 B
TypeScript
Raw Normal View History

import { defaultPrefixCls } from '../../config-provider';
import type { GlobalToken } from '../../theme';
export const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
export type ShowWaveEffect = (
element: HTMLElement,
info: {
className: string;
token: GlobalToken;
component?: string;
event: MouseEvent;
hashId: string;
},
) => void;
export type ShowWave = (event: MouseEvent) => void;