-
-
- This is a tooltip
-
- }
- position={select("Position", Object.values(Position), Position.RIGHT)}
- variant={select("variant", ["dark", "light"], "dark")}
- >
-
- Hover to show tooltip
-
-
-
+
+
+
+
+
);
}
+
+TooltipStory.args = {
+ content: "I'm a hover over text.",
+ position: Position.RIGHT,
+ boundary: "viewport",
+};
+
+TooltipStory.argTypes = {};
+
+TooltipStory.storyName = storyName.platform.tooltip.NAME;
diff --git a/app/client/src/components/stories/config/constants.tsx b/app/client/src/components/stories/config/constants.tsx
index 466cfabf4503..2a6c0ef88285 100644
--- a/app/client/src/components/stories/config/constants.tsx
+++ b/app/client/src/components/stories/config/constants.tsx
@@ -84,5 +84,17 @@ export const storyName = {
PATH: "Platform/Tabs",
NAME: "Tabs",
},
+ text: {
+ PATH: "Platform/Text",
+ NAME: "Text",
+ },
+ toast: {
+ PATH: "Platform/Toast",
+ NAME: "Toast",
+ },
+ tooltip: {
+ PATH: "Platform/Tooltip",
+ NAME: "Tooltip",
+ },
},
};