Skip to content

Commit

Permalink
docs: storybook fixes for tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewClarke05 committed Oct 24, 2023
1 parent 0c0ffda commit 8a1a827
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions packages/tooltip/src/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
import React from 'react';
import { Meta, Story } from '@storybook/react';
import { StoryObj } from '@storybook/react';

import Tooltip from './Tooltip';
// import README from "../README.md";

/**
* Accessible tooltip for hovering over.
*/
export default {
title: 'Components/Tooltip',
parameters: {
docs: {
// page: README,
description: {
component: 'Accessible tooltip for hovering over.',
},
},
},
} as Meta;
component: Tooltip,
};

export const Default: Story = () => (
<div id="testId">
<Tooltip target="tooltip">
<span>This is a tooltip</span>
</Tooltip>
<span id="tooltip">hover me!</span>
</div>
);
Default.storyName = 'default';
export const _Tooltip: StoryObj = {
render: () => (
<div id="testId">
<Tooltip target="tooltip">
<span>This is a tooltip</span>
</Tooltip>
<span id="tooltip">hover me!</span>
</div>
),
};

0 comments on commit 8a1a827

Please sign in to comment.