Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jan 16, 2020
1 parent a1224b3 commit 83a5f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/basics/writing-stories/index.md
Expand Up @@ -372,7 +372,7 @@ Now suppose you want to change the position in the hierarchy to `OtherFoo/Bar` a
```js
export default {
title: 'OtherFoo/Bar',
componentId: 'Foo/Bar', // or 'foo-bar' if you prefer
id: 'Foo/Bar', // or 'foo-bar' if you prefer
};
export const Baz = () => <MyComponent />;
Expand All @@ -381,4 +381,4 @@ Baz.story = {
};
```
Storybook will prioritize the `componentId` over the title for ID generation, if provided, and will prioritize the `story.name` over the export key for display.
Storybook will prioritize the `id` over the title for ID generation, if provided, and will prioritize the `story.name` over the export key for display.

0 comments on commit 83a5f4d

Please sign in to comment.