mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
- Add missing filenames or titles to snippets - Proper capitalization of terms like Webpack, Babel, PostCSS, etc. - Fix some typos - Split up complex snippets - Document default parameter values - Move acknowledgements back to README
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
```ts
|
|
// NavigationBasedComponent.stories.ts
|
|
import { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import NavigationBasedComponent from './NavigationBasedComponent';
|
|
|
|
const meta: Meta<typeof NavigationBasedComponent> = {
|
|
component: NavigationBasedComponent,
|
|
parameters: {
|
|
nextjs: {
|
|
appDirectory: true,
|
|
navigation: {
|
|
segments: [
|
|
['slug', 'hello'],
|
|
['framework', 'nextjs'],
|
|
],
|
|
},
|
|
},
|
|
},
|
|
};
|
|
export default meta;
|
|
```
|