Skip to main content

Provider

Basic Usage

A single Provider "Feature A" wraps a Kyber Button component.

Result
Loading...
Live Editor

With Multiple Nested Providers

Result
Loading...
Live Editor

With Properties Set on Providers

It's possible to bind a property to a value on the Provider. The following example creates an application structure where two features: Navigation and Content have their tracking objects mapped by these properties. This is useful in situations where custom key/value pairs are associated with specific areas of an application.

If providers are not given a property their values will be included in the path property of the onTrack callback's first argument.

Result
Loading...
Live Editor