import React from "react";
import Tooltip from "../../app/components/modals/Tooltip";
import Button from "../../app/components/buttons/Button";
import { TOOLTIP_POSITION_OPTIONS } from "../../lib/propNormalization";
export default {
title: "Components/Modals/Tooltip",
component: Tooltip,
argTypes: {
position: {
control: { type: "select" },
options: [...TOOLTIP_POSITION_OPTIONS],
},
disabled: {
control: { type: "boolean" },
},
text: {
control: { type: "text" },
},
},
};
const Template = (args) => (
);
export const Default = {
args: {
text: "Tooltip text goes here",
position: "top",
disabled: false,
},
render: Template,
};
export const Top = {
args: {
text: "Tooltip positioned at top",
position: "top",
},
render: Template,
};
export const Bottom = {
args: {
text: "Tooltip positioned at bottom",
position: "bottom",
},
render: Template,
};
export const Disabled = {
args: {
text: "This tooltip is disabled",
disabled: true,
},
render: Template,
};
export const LongText = {
args: {
text: "This is a longer tooltip text that demonstrates how the component handles multiple words and extended content",
position: "top",
},
render: Template,
};
export const WithIcon = () => (
);