@@ -8,81 +8,31 @@ export const componentConfig = {
8
8
preview : lazy (
9
9
( ) => import ( "@/preview/components/accordion-style-default" )
10
10
) ,
11
- codeHtml : `<div class="space-y-4 mx-auto">
12
- <details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
13
- <summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
14
- Accordion Item 1
15
- </summary>
16
- <div class="px-4 py-2 font-body bg-white text-gray-700">
17
- This is the content of the first accordion item. It is styled with
18
- Tailwind CSS.
19
- </div>
20
- </details>
21
-
22
- <details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
23
- <summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
24
- Accordion Item 2
25
- </summary>
26
- <div class="px-4 py-2 font-body bg-white text-gray-700">
27
- This is the content of the second accordion item. It has a similar
28
- style to maintain consistency.
29
- </div>
30
- </details>
31
-
32
- <details class="border-2 border-black shadow-md hover:shadow-sm transition-all overflow-hidden">
33
- <summary class="px-4 py-2 font-head text-black cursor-pointer focus:outline-none">
34
- Accordion Item 3
35
- </summary>
36
- <div class="px-4 py-2 font-body bg-white text-gray-700">
37
- This is the content of the third accordion item. The details element
38
- handles the toggle behavior.
39
- </div>
40
- </details>
41
- </div>` ,
42
11
} ,
43
12
"avatar-style-circle" : {
44
13
name : "avatar-style-circle" ,
45
14
filePath : "preview/components/avatar-style-circle.tsx" ,
46
15
preview : lazy ( ( ) => import ( "@/preview/components/avatar-style-circle" ) ) ,
47
- codeHtml : `<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
48
- <img
49
- className="w-full h-full"
50
- src="https://pagedone.io/asset/uploads/1704275541.png"
51
- alt="Rounded Avatar"
52
- />
53
- </div>` ,
54
16
} ,
55
17
"badge-style-default" : {
56
18
name : "badge-style-default" ,
57
19
filePath : "preview/components/badge-style-default.tsx" ,
58
20
preview : lazy ( ( ) => import ( "@/preview/components/badge-style-default" ) ) ,
59
- codeHtml : `<span className="border-black text-black border-2 px-2 py-1 text-sm">
60
- Badge
61
- </span>` ,
62
21
} ,
63
22
"badge-style-success" : {
64
23
name : "badge-style-default" ,
65
24
filePath : "preview/components/badge-style-success.tsx" ,
66
25
preview : lazy ( ( ) => import ( "@/preview/components/badge-style-success" ) ) ,
67
- codeHtml : `<span className="border-2 border-green-600 text-green-600 px-2.5 py-1 text-sm">
68
- Badge
69
- </span>` ,
70
26
} ,
71
27
"badge-style-error" : {
72
28
name : "badge-style-default" ,
73
29
filePath : "preview/components/badge-style-error.tsx" ,
74
30
preview : lazy ( ( ) => import ( "@/preview/components/badge-style-error" ) ) ,
75
- codeHtml : `<span className="border-2 border-red-600 text-red-600 px-2.5 py-1 text-sm">
76
- Badge
77
- </span>` ,
78
31
} ,
79
32
"badge-style-filled" : {
80
33
name : "badge-style-default" ,
81
34
filePath : "preview/components/badge-style-filled.tsx" ,
82
35
preview : lazy ( ( ) => import ( "@/preview/components/badge-style-filled" ) ) ,
83
- codeHtml : `<span className="border-2 bg-primary-400 border-black text-black px-2.5 py-1 text-sm">
84
- Badge
85
- </span>` ,
86
36
} ,
87
37
"button-style-default" : {
88
38
name : "button-style-default" ,
@@ -93,56 +43,28 @@ export const componentConfig = {
93
43
name : "card-style-default" ,
94
44
filePath : "preview/components/card-style-default.tsx" ,
95
45
preview : lazy ( ( ) => import ( "@/preview/components/card-style-default" ) ) ,
96
- codeHtml : `<div className="inline-block border-2 border-black p-4 shadow-md cursor-pointer transition-all hover:shadow-xs">
97
- <h4 className="font-head text-2xl font-medium mb-1">This is card Title</h4>
98
- <p>This is card description.</p>
99
- </div>` ,
100
46
} ,
101
47
"input-style-default" : {
102
48
name : "input-style-default" ,
103
49
filePath : "preview/components/input-style-default.tsx" ,
104
50
preview : lazy ( ( ) => import ( "@/preview/components/input-style-default" ) ) ,
105
- codeHtml : `<input
106
- type="text"
107
- placeholder="type something..."
108
- className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
109
- />` ,
110
51
} ,
111
52
"textarea-style-default" : {
112
53
name : "textarea-style-default" ,
113
54
filePath : "preview/components/textarea-style-default.tsx" ,
114
55
preview : lazy (
115
56
( ) => import ( "@/preview/components/textarea-style-default" )
116
57
) ,
117
- codeHtml : `<textarea
118
- rows="4"
119
- placeholder="type something..."
120
- className="px-4 py-2 w-full border-2 border-black shadow-md transition focus:outline-none focus:shadow-xs"
121
- />` ,
122
58
} ,
123
59
"typography-headings" : {
124
60
name : "typography-headings" ,
125
61
filePath : "preview/components/typography-headings.tsx" ,
126
62
preview : lazy ( ( ) => import ( "@/preview/components/typography-headings" ) ) ,
127
- codeHtml : `<div className="space-y-4">
128
- <h1 className="font-head text-5xl lg:text-6xl font-bold">This is H1</h1>
129
- <h2 className="font-head text-4xl font-semibold">This is H2</h2>
130
- <h3 className="font-head text-2xl font-semibold">This is H3</h3>
131
- <h4 className="font-head text-xl font-medium">This is H4</h4>
132
- <h5 className="font-head text-lg font-medium">This is H5</h5>
133
- <h6 className="font-head font-medium">This is H6</h6>
134
- </div>` ,
135
63
} ,
136
64
"typography-p" : {
137
65
name : "typography-p" ,
138
66
filePath : "preview/components/typography-p.tsx" ,
139
67
preview : lazy ( ( ) => import ( "@/preview/components/typography-p" ) ) ,
140
- codeHtml : `<p className="font-sans">
141
- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quaerat eos,
142
- doloremque inventore nesciunt quo sequi veniam impedit alias libero
143
- dolorem tempore quia esse fugit fuga iste aliquam expedita molestias
144
- iusto?
145
- </p>` ,
146
68
} ,
147
69
} ,
148
70
} ;
0 commit comments