Skip to content

TrackProps

Props for Track.

optional as?: string | number | symbol

Host element tag when not asChild. Default 'span'.


optional asChild?: boolean

Compose the telemetry onto the single child element instead of rendering a wrapper (Radix-Slot style). Preserves the child’s accessible name, disabled state, and existing onClick.


optional data?: SdkEventProperties

Event data (reserved names are dropped by useTrack).


event: string

Event name to emit on click.


optional options?: TrackOptions

Track options (area / action / purpose / once / dedupeKey / immediate).