@@ -47,6 +47,7 @@ const sections = getSections({
47
47
title =" Svelte Modal"
48
48
subTitle =" With a subtitle"
49
49
id =" modal-svelte"
50
+ theme =" alert"
50
51
>
51
52
<p >
52
53
Click on the close icon, close button, overlay, or hit <code >esc</code > to close this modal.
@@ -67,6 +68,7 @@ const sections = getSections({
67
68
title =" React Modal"
68
69
subTitle =" With a subtitle"
69
70
id =" modal-react"
71
+ theme =" info"
70
72
>
71
73
<p >
72
74
Click on the close icon, close button, overlay, or hit <code >esc</code > to close this modal.
@@ -157,6 +159,62 @@ const sections = getSections({
157
159
This modal doesn't have a close button. It can only be closed by clicking on the overlay or using the <code >esc</code > button.
158
160
</section.component >
159
161
</ComponentWrapper >
162
+
163
+ <ComponentWrapper title = " Info modal" >
164
+ <Button theme = " info" id = { ` modal-btn-6${index } ` } >
165
+ Trigger
166
+ </Button >
167
+ <section.component
168
+ id = { ` modal-6${index } ` }
169
+ title = " Information"
170
+ subTitle = " Before continuing, please read carefully"
171
+ theme = " info"
172
+ >
173
+ This modal was created using the info theme
174
+ </section.component >
175
+ </ComponentWrapper >
176
+
177
+ <ComponentWrapper title = " Success modal" >
178
+ <Button theme = " success" id = { ` modal-btn-7${index } ` } >
179
+ Trigger
180
+ </Button >
181
+ <section.component
182
+ id = { ` modal-7${index } ` }
183
+ title = " Success"
184
+ subTitle = " Before continuing, please read carefully"
185
+ theme = " success"
186
+ >
187
+ This modal was created using the success theme
188
+ </section.component >
189
+ </ComponentWrapper >
190
+
191
+ <ComponentWrapper title = " Info modal" >
192
+ <Button theme = " warning" id = { ` modal-btn-8${index } ` } >
193
+ Trigger
194
+ </Button >
195
+ <section.component
196
+ id = { ` modal-8${index } ` }
197
+ title = " Warning"
198
+ subTitle = " Before continuing, please read carefully"
199
+ theme = " warning"
200
+ >
201
+ This modal was created using the warning theme
202
+ </section.component >
203
+ </ComponentWrapper >
204
+
205
+ <ComponentWrapper title = " Info modal" >
206
+ <Button theme = " alert" id = { ` modal-btn-9${index } ` } >
207
+ Trigger
208
+ </Button >
209
+ <section.component
210
+ id = { ` modal-9${index } ` }
211
+ title = " Alert"
212
+ subTitle = " Before continuing, please read carefully"
213
+ theme = " alert"
214
+ >
215
+ This modal was created using the alert theme
216
+ </section.component >
217
+ </ComponentWrapper >
160
218
</div >
161
219
))}
162
220
</Layout >
@@ -176,7 +234,7 @@ const sections = getSections({
176
234
'react'
177
235
]
178
236
179
- const ids = Array(5 ).fill(10).map((x, index) => x * (index + 1))
237
+ const ids = Array(9 ).fill(10).map((x, index) => x * (index + 1))
180
238
const variants = [
181
239
'00',
182
240
'01',
0 commit comments