Skip to content

Commit d53b8c2

Browse files
committed
chore: update docs
1 parent 9c233a6 commit d53b8c2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

DOCUMENTATION_GUIDELINES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Our component documentation serves multiple purposes:
2222
Every component documentation file should follow this structure:
2323

2424
```mdx
25-
import { Meta, Canvas, Story, Controls } from '@storybook/blocks';
25+
import { Meta, Canvas, Story, Controls } from '@storybook/addon-docs/blocks';
2626
import { ComponentName } from './ComponentName';
2727
import * as ComponentStories from './ComponentName.stories';
2828

src/components/overlays/Tooltip/Tooltip.docs.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Meta, Canvas, Story, Controls } from '@storybook/blocks';
1+
import { Meta, Canvas, Story, Controls } from '@storybook/addon-docs/blocks';
22
import * as TooltipStories from './Tooltip.stories';
33

44
<Meta of={TooltipStories} />
@@ -27,13 +27,11 @@ This module exports three components that work together:
2727

2828
The simplest way to add tooltips to your components. It combines `TooltipTrigger` and `Tooltip` for convenience.
2929

30-
<Story of={TooltipStories.ViaProvider} />
31-
3230
---
3331

3432
### Properties
3533

36-
<Controls of={TooltipStories.ViaProvider} />
34+
<Controls of={TooltipStories.Default} />
3735

3836
### Base Properties
3937

@@ -66,13 +64,13 @@ The `mods` property on the tooltip accepts the following modifiers you can overr
6664

6765
Lower-level component that wraps a trigger element and a `Tooltip`. Use this when you need more control over the tooltip content or behavior.
6866

69-
<Story of={TooltipStories.Default} />
67+
<Story of={TooltipStories.ViaProvider} />
7068

7169
---
7270

7371
### Properties
7472

75-
<Controls of={TooltipStories.Default} />
73+
<Controls of={TooltipStories.ViaProvider} />
7674

7775
### Base Properties
7876

0 commit comments

Comments
 (0)