@@ -96,7 +96,13 @@ export const primitiveComponentsDemoResource = defineResource({
9696 < Card . Root >
9797 < Card . Header title = "Badge" />
9898 < Card . Content >
99- < div style = { { display : "flex" , flexDirection : "column" , gap : "1rem" } } >
99+ < div
100+ style = { {
101+ display : "flex" ,
102+ flexDirection : "column" ,
103+ gap : "1rem" ,
104+ } }
105+ >
100106 < div >
101107 < div style = { labelStyle } > Solid</ div >
102108 < div style = { rowStyle } >
@@ -131,6 +137,37 @@ export const primitiveComponentsDemoResource = defineResource({
131137 </ Card . Content >
132138 </ Card . Root >
133139
140+ { /* Alert */ }
141+ < Card . Root >
142+ < Card . Header title = "Alert" />
143+ < Card . Content >
144+ < div
145+ style = { {
146+ display : "flex" ,
147+ flexDirection : "column" ,
148+ gap : "1rem" ,
149+ } }
150+ >
151+ < Alert . Root >
152+ < Alert . Title > Default Alert</ Alert . Title >
153+ < Alert . Description > This is a default alert message.</ Alert . Description >
154+ </ Alert . Root >
155+ < Alert . Root variant = "success" >
156+ < Alert . Title > Success</ Alert . Title >
157+ < Alert . Description > Operation completed successfully.</ Alert . Description >
158+ </ Alert . Root >
159+ < Alert . Root variant = "error" >
160+ < Alert . Title > Error</ Alert . Title >
161+ < Alert . Description > Something went wrong. Please try again.</ Alert . Description >
162+ </ Alert . Root >
163+ < Alert . Root variant = "neutral" >
164+ < Alert . Title > Information</ Alert . Title >
165+ < Alert . Description > This is a neutral informational message.</ Alert . Description >
166+ </ Alert . Root >
167+ </ div >
168+ </ Card . Content >
169+ </ Card . Root >
170+
134171 { /* Tooltip */ }
135172 < Card . Root >
136173 < Card . Header title = "Tooltip" />
@@ -506,31 +543,6 @@ export const primitiveComponentsDemoResource = defineResource({
506543 </ Table . Root >
507544 </ Card . Content >
508545 </ Card . Root >
509-
510- { /* Alert */ }
511- < Card . Root >
512- < Card . Header title = "Alert" />
513- < Card . Content >
514- < div style = { { display : "flex" , flexDirection : "column" , gap : "1rem" } } >
515- < Alert . Root >
516- < Alert . Title > Default Alert</ Alert . Title >
517- < Alert . Description > This is a default alert message.</ Alert . Description >
518- </ Alert . Root >
519- < Alert . Root variant = "success" >
520- < Alert . Title > Success</ Alert . Title >
521- < Alert . Description > Operation completed successfully.</ Alert . Description >
522- </ Alert . Root >
523- < Alert . Root variant = "error" >
524- < Alert . Title > Error</ Alert . Title >
525- < Alert . Description > Something went wrong. Please try again.</ Alert . Description >
526- </ Alert . Root >
527- < Alert . Root variant = "neutral" >
528- < Alert . Title > Information</ Alert . Title >
529- < Alert . Description > This is a neutral informational message.</ Alert . Description >
530- </ Alert . Root >
531- </ div >
532- </ Card . Content >
533- </ Card . Root >
534546 </ Layout . Column >
535547 </ Layout >
536548 ) ;
0 commit comments