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