From 1a0167478964fb75ce993a8a358a8daecfef7d73 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 2 Jul 2023 14:41:45 +0100 Subject: [PATCH] Popover positioning example --- docs/src/components/CodeSample.tsx | 1 - docs/src/content/guides/popover-position.mdx | 338 ++++++++++--------- docs/src/content/guides/tour-progress.mdx | 2 + 3 files changed, 172 insertions(+), 169 deletions(-) diff --git a/docs/src/components/CodeSample.tsx b/docs/src/components/CodeSample.tsx index 8a2a904..d55f4bd 100644 --- a/docs/src/components/CodeSample.tsx +++ b/docs/src/components/CodeSample.tsx @@ -100,7 +100,6 @@ export function CodeSample(props: CodeSampleProps) {
{heading &&

{heading}

} {children &&
{children}
} - {!children &&
} diff --git a/docs/src/content/guides/popover-position.mdx b/docs/src/content/guides/popover-position.mdx index 7d1aae9..edbbdfc 100644 --- a/docs/src/content/guides/popover-position.mdx +++ b/docs/src/content/guides/popover-position.mdx @@ -30,182 +30,184 @@ driverObj.highlight({

Use the buttons below to show the popover.

-left and align set to start. PS, we can use HTML in the title and descriptions of popover.', - side: "left", - align: 'start' - } - }} - id={"left-start"} - client:load -/> +
+ left and align set to start. PS, we can use HTML in the title and descriptions of popover.', + side: "left", + align: 'start' + } + }} + id={"left-start"} + client:load + /> -left and align set to center. PS, we can use HTML in the title and descriptions of popover.', - side: "left", - align: 'center' - } - }} - id={"left-start"} - client:load -/> + left and align set to center. PS, we can use HTML in the title and descriptions of popover.', + side: "left", + align: 'center' + } + }} + id={"left-start"} + client:load + /> -left and align set to end. PS, we can use HTML in the title and descriptions of popover.', - side: "left", - align: 'end' - } - }} - id={"left-start"} - client:load -/> + left and align set to end. PS, we can use HTML in the title and descriptions of popover.', + side: "left", + align: 'end' + } + }} + id={"left-start"} + client:load + /> -top and align set to start. PS, we can use HTML in the title and descriptions of popover.', - side: "top", - align: 'start' - } - }} - id={"top-start"} - client:load -/> + top and align set to start. PS, we can use HTML in the title and descriptions of popover.', + side: "top", + align: 'start' + } + }} + id={"top-start"} + client:load + /> -top and align set to center. PS, we can use HTML in the title and descriptions of popover.', - side: "top", - align: 'center' - } - }} - id={"top-start"} - client:load -/> + top and align set to center. PS, we can use HTML in the title and descriptions of popover.', + side: "top", + align: 'center' + } + }} + id={"top-start"} + client:load + /> -top and align set to end. PS, we can use HTML in the title and descriptions of popover.', - side: "top", - align: 'end' - } - }} - id={"top-start"} - client:load -/> + top and align set to end. PS, we can use HTML in the title and descriptions of popover.', + side: "top", + align: 'end' + } + }} + id={"top-start"} + client:load + /> -right and align set to start. PS, we can use HTML in the title and descriptions of popover.', - side: "right", - align: 'start' - } - }} - id={"right-start"} - client:load -/> + right and align set to start. PS, we can use HTML in the title and descriptions of popover.', + side: "right", + align: 'start' + } + }} + id={"right-start"} + client:load + /> -right and align set to center. PS, we can use HTML in the title and descriptions of popover.', - side: "right", - align: 'center' - } - }} - id={"right-start"} - client:load -/> + right and align set to center. PS, we can use HTML in the title and descriptions of popover.', + side: "right", + align: 'center' + } + }} + id={"right-start"} + client:load + /> -right and align set to end. PS, we can use HTML in the title and descriptions of popover.', - side: "right", - align: 'end' - } - }} - id={"right-start"} - client:load -/> + right and align set to end. PS, we can use HTML in the title and descriptions of popover.', + side: "right", + align: 'end' + } + }} + id={"right-start"} + client:load + /> -bottom and align set to start. PS, we can use HTML in the title and descriptions of popover.', - side: "bottom", - align: 'start' - } - }} - id={"bottom-start"} - client:load -/> + bottom and align set to start. PS, we can use HTML in the title and descriptions of popover.', + side: "bottom", + align: 'start' + } + }} + id={"bottom-start"} + client:load + /> -bottom and align set to center. PS, we can use HTML in the title and descriptions of popover.', - side: "bottom", - align: 'center' - } - }} - id={"bottom-start"} - client:load -/> + bottom and align set to center. PS, we can use HTML in the title and descriptions of popover.', + side: "bottom", + align: 'center' + } + }} + id={"bottom-start"} + client:load + /> -bottom and align set to end. PS, we can use HTML in the title and descriptions of popover.', - side: "bottom", - align: 'end' - } - }} - id={"right-start"} - client:load -/> \ No newline at end of file + bottom and align set to end. PS, we can use HTML in the title and descriptions of popover.', + side: "bottom", + align: 'end' + } + }} + id={"right-start"} + client:load + /> +
\ No newline at end of file diff --git a/docs/src/content/guides/tour-progress.mdx b/docs/src/content/guides/tour-progress.mdx index 1d0cf27..145fcc4 100644 --- a/docs/src/content/guides/tour-progress.mdx +++ b/docs/src/content/guides/tour-progress.mdx @@ -45,6 +45,8 @@ Please note that `showProgress` is `false` by default. Also the default text for ```
+
+