Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/src/content/guides/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,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<string, any>;

// Callback when the current step is deselected,
// about to be highlighted or highlighted.
// Each callback receives the following parameters:
Expand Down Expand Up @@ -241,4 +244,4 @@ type State = {
// container, title, description, buttons etc.
popover?: PopoverDOM;
}
```
```
1 change: 1 addition & 0 deletions src/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type DriveStep = {
onDeselected?: DriverHook;
popover?: Popover;
disableActiveInteraction?: boolean;
data?: Record<string, any>;
};

export function driver(options: Config = {}) {
Expand Down