TrackProps
Props for Track.
Properties
Section titled “Properties”
optionalas?:string|number|symbol
Host element tag when not asChild. Default 'span'.
asChild?
Section titled “asChild?”
optionalasChild?: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.
optionaldata?:SdkEventProperties
Event data (reserved names are dropped by useTrack).
event:
string
Event name to emit on click.
options?
Section titled “options?”
optionaloptions?:TrackOptions
Track options (area / action / purpose / once / dedupeKey / immediate).