24 lines
554 B
TypeScript
24 lines
554 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { Tooltip } from "../src/components/Tooltip/Tooltip";
|
|
import { CheckCircle } from "lucide-react";
|
|
|
|
const meta = {
|
|
title: "Overlays/Tooltip",
|
|
component: Tooltip,
|
|
parameters: {
|
|
layout: "centered",
|
|
},
|
|
tags: ["autodocs"],
|
|
argTypes: {},
|
|
} satisfies Meta<typeof Tooltip>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
message: "Hello world",
|
|
children: <CheckCircle size={"1rem"} className="cell-stateIcon" />,
|
|
},
|
|
};
|