@@ -40,7 +40,7 @@ const CardsComponent: React.FC = () => {
4040 </ header >
4141
4242 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(300px, 1fr))' , gap : '24px' , marginBottom : '32px' , alignItems : 'start' } } >
43- < Card elevationLevel = "1" >
43+ < Card elevationLevel = { 1 } >
4444 < div style = { { display : 'flex' , flexDirection : 'column' , gap : '8px' } } >
4545 < span style = { { fontWeight : 600 } } > Default Card</ span >
4646 < span style = { { color : 'var(--ai-color-text-secondary)' , fontSize : '14px' } } >
@@ -49,7 +49,7 @@ const CardsComponent: React.FC = () => {
4949 </ div >
5050 </ Card >
5151
52- < Card elevationLevel = "1" interactive >
52+ < Card elevationLevel = { 1 } interactive >
5353 < div style = { { display : 'flex' , flexDirection : 'column' , gap : '8px' } } >
5454 < span style = { { fontWeight : 600 } } > Interactive Card</ span >
5555 < span style = { { color : 'var(--ai-color-text-secondary)' , fontSize : '14px' } } >
@@ -58,7 +58,7 @@ const CardsComponent: React.FC = () => {
5858 </ div >
5959 </ Card >
6060
61- < Card elevationLevel = "2" >
61+ < Card elevationLevel = { 2 } >
6262 < div style = { { display : 'flex' , flexDirection : 'column' , gap : '8px' } } >
6363 < span style = { { fontWeight : 600 } } > Higher Elevation</ span >
6464 < span style = { { color : 'var(--ai-color-text-secondary)' , fontSize : '14px' } } >
@@ -71,7 +71,7 @@ const CardsComponent: React.FC = () => {
7171 < details style = { { marginTop : '16px' , cursor : 'pointer' } } >
7272 < summary style = { { fontWeight : 600 , marginBottom : '12px' } } > Show all elevation levels</ summary >
7373 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(200px, 1fr))' , gap : '16px' , marginTop : '16px' , alignItems : 'start' } } >
74- { ( [ '0' , '1' , '2' , '3' , '4' , '5' ] as const ) . map ( level => (
74+ { ( [ 0 , 1 , 2 , 3 , 4 , 5 ] as const ) . map ( level => (
7575 < Card
7676 key = { level }
7777 elevationLevel = { level }
@@ -86,7 +86,7 @@ const CardsComponent: React.FC = () => {
8686 >
8787 < strong > Elevation { level } </ strong >
8888 < div style = { { color : 'var(--ai-color-text-secondary)' , fontSize : '13px' } } >
89- { level === '0' ? 'No shadow' : `Shadow level ${ level } ` }
89+ { level === 0 ? 'No shadow' : `Shadow level ${ level } ` }
9090 </ div >
9191 </ Card >
9292 ) ) }
@@ -222,7 +222,7 @@ const CardsComponent: React.FC = () => {
222222 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(300px, 1fr))' , gap : '24px' , alignItems : 'start' } } >
223223 < div >
224224 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Default Loading</ h3 >
225- < Card elevationLevel = "1" loading style = { { minHeight : '280px' } } >
225+ < Card elevationLevel = { 1 } loading style = { { minHeight : '280px' } } >
226226 < p > This content won't show while loading</ p >
227227 </ Card >
228228 < p style = { { fontSize : '12px' , color : 'var(--ai-color-text-secondary)' , marginTop : '8px' } } >
@@ -232,7 +232,7 @@ const CardsComponent: React.FC = () => {
232232
233233 < div >
234234 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Custom Skeleton</ h3 >
235- < Card elevationLevel = "1" loading skeleton = {
235+ < Card elevationLevel = { 1 } loading skeleton = {
236236 < >
237237 < div style = { { display : 'flex' , alignItems : 'center' , gap : '12px' , marginBottom : '16px' } } >
238238 < Skeleton variant = "circular" width = { 48 } height = { 48 } />
@@ -255,7 +255,7 @@ const CardsComponent: React.FC = () => {
255255
256256 < div >
257257 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Not Loading</ h3 >
258- < Card elevationLevel = "1" >
258+ < Card elevationLevel = { 1 } >
259259 < Card . Header >
260260 < Card . Title > Normal Content</ Card . Title >
261261 < Card . Description > This card shows content immediately</ Card . Description >
@@ -285,7 +285,7 @@ const CardsComponent: React.FC = () => {
285285 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(300px, 1fr))' , gap : '24px' , alignItems : 'start' } } >
286286 < div >
287287 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Default Error</ h3 >
288- < Card elevationLevel = "1" error style = { { minHeight : '280px' } } >
288+ < Card elevationLevel = { 1 } error style = { { minHeight : '280px' } } >
289289 < p > This content won't show when error state is active</ p >
290290 </ Card >
291291 < p style = { { fontSize : '12px' , color : 'var(--ai-color-text-secondary)' , marginTop : '8px' } } >
@@ -296,7 +296,7 @@ const CardsComponent: React.FC = () => {
296296 < div >
297297 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Custom Error Message</ h3 >
298298 < Card
299- elevationLevel = "1"
299+ elevationLevel = { 1 }
300300 error
301301 errorTitle = "Failed to load"
302302 errorMessage = "Unable to fetch the requested data. Please try again."
@@ -312,7 +312,7 @@ const CardsComponent: React.FC = () => {
312312 < div >
313313 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > With Retry Action</ h3 >
314314 < Card
315- elevationLevel = "1"
315+ elevationLevel = { 1 }
316316 error
317317 errorTitle = "Connection failed"
318318 errorMessage = "Could not reach the server"
@@ -329,7 +329,7 @@ const CardsComponent: React.FC = () => {
329329 < div >
330330 < h3 style = { { fontSize : '14px' , fontWeight : 600 , marginBottom : '12px' , color : 'var(--ai-color-text-primary)' } } > Custom Error Content</ h3 >
331331 < Card
332- elevationLevel = "1"
332+ elevationLevel = { 1 }
333333 error
334334 errorContent = {
335335 < div style = { { padding : '48px 24px' , textAlign : 'center' } } >
@@ -360,7 +360,7 @@ const CardsComponent: React.FC = () => {
360360
361361 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(340px, 1fr))' , gap : '24px' , alignItems : 'start' } } >
362362 { /* Product Card */ }
363- < Card elevationLevel = "1" interactive >
363+ < Card elevationLevel = { 1 } interactive >
364364 < Card . Header >
365365 < div style = { { display : 'flex' , alignItems : 'center' , justifyContent : 'space-between' } } >
366366 < Card . Title > Premium Headphones</ Card . Title >
@@ -385,7 +385,7 @@ const CardsComponent: React.FC = () => {
385385 </ Card >
386386
387387 { /* Article Card - Documentation Example */ }
388- < Card elevationLevel = "1" interactive >
388+ < Card elevationLevel = { 1 } interactive >
389389 < Card . Header >
390390 < Card . ChipGroup >
391391 < Card . Chip variant = "neutral" size = "sm" > ChatGPT Apps</ Card . Chip >
@@ -417,7 +417,7 @@ const CardsComponent: React.FC = () => {
417417 </ Card >
418418
419419 { /* User Profile Card */ }
420- < Card elevationLevel = "2" >
420+ < Card elevationLevel = { 2 } >
421421 < Card . Header >
422422 < div style = { { display : 'flex' , gap : '16px' , alignItems : 'center' } } >
423423 < img
@@ -450,7 +450,7 @@ const CardsComponent: React.FC = () => {
450450 </ Card >
451451
452452 { /* Venue/Restaurant Card with Features Meta */ }
453- < Card elevationLevel = "1" interactive >
453+ < Card elevationLevel = { 1 } interactive >
454454 < Card . Image
455455 src = "https://images.unsplash.com/photo-1686836715835-65af22ea5cd4?ixlib=rb-4.1.0& ixid = M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA % 3 D % 3 D & auto = format & fit = crop & q = 80 & w = 400 & h = 200 "
456456 alt = "Artisan Bistro"
@@ -478,7 +478,7 @@ const CardsComponent: React.FC = () => {
478478 </ Card >
479479
480480 { /* Project/Case Study Card */ }
481- < Card elevationLevel = "1" interactive >
481+ < Card elevationLevel = { 1 } interactive >
482482 < Card . Image
483483 src = "https://images.unsplash.com/photo-1552664730-d307ca884978?w=400& h = 200 & fit = crop "
484484 alt = "Project showcase"
@@ -509,7 +509,7 @@ const CardsComponent: React.FC = () => {
509509 </ Card >
510510
511511 { /* Team Member Card */ }
512- < Card elevationLevel = "1" interactive >
512+ < Card elevationLevel = { 1 } interactive >
513513 < Card . Header >
514514 < div style = { { display : 'flex' , gap : '16px' , alignItems : 'flex-start' } } >
515515 < img
@@ -556,7 +556,7 @@ const CardsComponent: React.FC = () => {
556556
557557 < div style = { { display : 'grid' , gridTemplateColumns : 'repeat(auto-fill, minmax(360px, 1fr))' , gap : '24px' , alignItems : 'start' } } >
558558 { /* E-commerce Product */ }
559- < Card elevationLevel = "2" interactive >
559+ < Card elevationLevel = { 2 } interactive >
560560 < Card . Header >
561561 < div style = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'start' } } >
562562 < div >
@@ -694,7 +694,7 @@ const CardsComponent: React.FC = () => {
694694 For basic content, use Card as a simple container. Best for custom layouts or simple content.
695695 </ p >
696696 < pre style = { codeBlockStyles . primary } >
697- < code > { `<Card elevationLevel="1" >
697+ < code > { `<Card elevationLevel={1} >
698698 <h3>Title</h3>
699699 <p>Content goes here</p>
700700</Card>` } </ code >
@@ -707,7 +707,7 @@ const CardsComponent: React.FC = () => {
707707 For structured layouts, use compound components. Provides semantic HTML and consistent styling.
708708 </ p >
709709 < pre style = { codeBlockStyles . primary } >
710- < code > { `<Card elevationLevel="1" interactive>
710+ < code > { `<Card elevationLevel={1} interactive>
711711 <Card.Header>
712712 <Card.Title>Product Name</Card.Title>
713713 <Card.Chip variant="success">New</Card.Chip>
@@ -871,7 +871,7 @@ const CardsComponent: React.FC = () => {
871871 rows = { [
872872 {
873873 name : 'elevationLevel' ,
874- description : 'Elevation level for shadow and overlay. Options: "0" | "1" | "2" | "3" | "4" | "5" . Default: "1" ' ,
874+ description : 'Elevation level for shadow and overlay. Options: 0 | 1 | 2 | 3 | 4 | 5 . Default: 1 ' ,
875875 } ,
876876 {
877877 name : 'border' ,
0 commit comments