diff --git a/docs/src/content/guides/configuration.mdx b/docs/src/content/guides/configuration.mdx index ed56808..10e0834 100644 --- a/docs/src/content/guides/configuration.mdx +++ b/docs/src/content/guides/configuration.mdx @@ -258,6 +258,9 @@ type DriveStep = { // Whether to disable interaction with the highlighted element. (default: false) disableActiveInteraction?: boolean; + // Arbitrary data that you can pass to the step in order to support complex custom logic in hooks. + data?: Record; + // Callback when the current step is deselected, // about to be highlighted or highlighted. // Each callback receives the following parameters: diff --git a/src/driver.ts b/src/driver.ts index 6941dc4..af91ecf 100644 --- a/src/driver.ts +++ b/src/driver.ts @@ -20,6 +20,7 @@ export type DriveStep = { onDeselected?: DriverHook; popover?: Popover; disableActiveInteraction?: boolean; + data?: Record; }; export interface Driver {