@lukulent/svelte-umami
Version:
[](https://madewithsvelte.com/p/svelte-umami/shield-link)
32 lines (31 loc) • 1.02 kB
TypeScript
import { SvelteComponent } from "svelte";
declare const __propDef: {
props: {
/** The name of the event to track */ name: string;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {};
};
exports?: {} | undefined;
bindings?: string | undefined;
};
export type UmamiTrackClicksProps = typeof __propDef.props;
export type UmamiTrackClicksEvents = typeof __propDef.events;
export type UmamiTrackClicksSlots = typeof __propDef.slots;
/**
* Surround elements with this component to track clicks with Umami Analytics.
*
* - Note: This component is not a replacement for the UmamiAnalytics component. It needs to be initialized separately.
* - Usage:
* ```tsx
* <UmamiTrackClicks name="Click me button">
* <button data-umami-event='my button'>Click me</button>
* </UmamiTrackClicks>
* ```
*/
export default class UmamiTrackClicks extends SvelteComponent<UmamiTrackClicksProps, UmamiTrackClicksEvents, UmamiTrackClicksSlots> {
}
export {};