File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
src/components/DeveloperDocsLinks Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ const config: StorybookConfig = {
67
67
if ( imageRule ) {
68
68
imageRule [ "exclude" ] = / \. s v g $ /
69
69
}
70
+ // Configure yaml files to be loaded with yaml-loader
71
+ config . module . rules . push ( {
72
+ test : / \. y a ? m l $ / ,
73
+ use : "yaml-loader" ,
74
+ } )
70
75
71
76
// Configure .svg files to be loaded with @svgr /webpack
72
77
config . module . rules . push ( {
Original file line number Diff line number Diff line change
1
+ import { Meta , StoryObj } from "@storybook/react"
2
+
3
+ import { langViewportModes } from "../../../.storybook/modes"
4
+
5
+ import DeveloperDocsLinksComponent from "."
6
+
7
+ const meta = {
8
+ title : "Molecules / Navigation / DeveloperDocsLinks" ,
9
+ component : DeveloperDocsLinksComponent ,
10
+ args : {
11
+ headerId : "ethereum-stack" ,
12
+ } ,
13
+ parameters : {
14
+ layout : "fullscreen" ,
15
+ chromatic : {
16
+ modes : {
17
+ ...langViewportModes ,
18
+ } ,
19
+ } ,
20
+ } ,
21
+ decorators : [
22
+ ( Story ) => (
23
+ < article className = "max-w-3xl scroll-mt-24" >
24
+ < Story />
25
+ </ article >
26
+ ) ,
27
+ ] ,
28
+ } satisfies Meta < typeof DeveloperDocsLinksComponent >
29
+
30
+ export default meta
31
+
32
+ type Story = StoryObj < typeof meta >
33
+
34
+ export const DeveloperDocsLinks : Story = { }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments