File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { Center } from "@chakra-ui/react"
2
+ import type { Meta , StoryObj } from "@storybook/react"
3
+
4
+ import { langViewportModes } from "../../../.storybook/modes"
5
+ import { ContentLayout as ContentLayoutComponent } from "../ContentLayout"
6
+
7
+ const meta = {
8
+ title : "Templates / ContentLayout" ,
9
+ component : ContentLayoutComponent ,
10
+ parameters : {
11
+ layout : "fullscreen" ,
12
+ chromatic : {
13
+ modes : {
14
+ ...langViewportModes ,
15
+ } ,
16
+ } ,
17
+ } ,
18
+ decorators : [
19
+ ( Story ) => (
20
+ < div className = "mx-auto max-w-screen-2xl" >
21
+ < Story />
22
+ </ div >
23
+ ) ,
24
+ ] ,
25
+ } satisfies Meta < typeof ContentLayoutComponent >
26
+
27
+ export default meta
28
+
29
+ export const ContentLayout : StoryObj < typeof meta > = {
30
+ args : {
31
+ children : (
32
+ < Center h = "497px" border = "2px dashed" borderColor = "primary.base" >
33
+ Content Here
34
+ </ Center >
35
+ ) ,
36
+ tocItems : [
37
+ {
38
+ title : "Section 1" ,
39
+ url : "/" ,
40
+ items : [ ] ,
41
+ } ,
42
+ {
43
+ title : "Section 2" ,
44
+ url : "/" ,
45
+ items : [ ] ,
46
+ } ,
47
+ ] ,
48
+ dropdownLinks : {
49
+ text : "More content" ,
50
+ ariaLabel : "More content" ,
51
+ items : [
52
+ {
53
+ text : "Another page" ,
54
+ href : "/" ,
55
+ } ,
56
+ {
57
+ text : "Another page 2" ,
58
+ href : "/" ,
59
+ } ,
60
+ ] ,
61
+ } ,
62
+ maxDepth : 2 ,
63
+ heroSection : (
64
+ < Center h = "400px" border = "2px dashed" borderColor = "primary.base" >
65
+ Hero section
66
+ </ Center >
67
+ ) ,
68
+ } ,
69
+ }
You can’t perform that action at this time.
0 commit comments