UNPKG

@optic7409/resolvo-analytics

Version:

Simplified analytics client library for Next.js with automatic SSR handling, one-line integration, and comprehensive tracking

11 lines (10 loc) 539 B
import React, { ButtonHTMLAttributes } from 'react'; interface TrackingButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> { trackingEvent?: string; trackingProperties?: Record<string, any>; variant?: 'primary' | 'secondary' | 'outline' | 'ghost'; size?: 'sm' | 'md' | 'lg'; children: React.ReactNode; } export declare function TrackingButton({ trackingEvent, trackingProperties, variant, size, onClick, className, children, ...props }: TrackingButtonProps): import("react/jsx-runtime").JSX.Element; export {};