File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
docs/tutorialkit.dev/src/content/docs/guides Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,22 @@ When overriding `TopBar` you can place TutorialKit's default components using fo
71
71
72
72
<Image src = { uiDialog } alt = " TutorialKit's Dialog" />
73
73
74
- Component for overriding confirmation dialogs. This component has to be a React component.
74
+ Component for overriding confirmation dialogs. This component has to be a React component and be the default export of that module .
75
75
76
- It will receive same props that ` @tutorialkit/react/dialog ` supports.
76
+ It will receive same props that ` @tutorialkit/react/dialog ` supports:
77
+
78
+ ``` ts
79
+ interface Props {
80
+ /** Title of the dialog */
81
+ title: string ;
82
+
83
+ /** Text for the confirmation button */
84
+ confirmText: string ;
85
+
86
+ /** Callback invoked when dialog is closed */
87
+ onClose: () => void ;
88
+
89
+ /** Content of the dialog */
90
+ children: ReactNode ;
91
+ }
92
+ ```
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export interface OverrideComponentsOptions {
50
50
/**
51
51
* Component for overriding confirmation dialogs.
52
52
*
53
- * This component has to be a React component.
53
+ * This component has to be a React component and be the default export of that module .
54
54
* It will receive same props that `@tutorialkit/react/dialog` supports.
55
55
*/
56
56
Dialog ?: string ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface Props {
12
12
/** Callback invoked when dialog is closed */
13
13
onClose : ( ) => void ;
14
14
15
+ /** Content of the dialog */
15
16
children : ReactNode ;
16
17
}
17
18
You can’t perform that action at this time.
0 commit comments