File tree Expand file tree Collapse file tree
packages/nimbus/src/components/card Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import figma from "@figma/code-connect/react" ;
22import { Card } from "./card" ;
33
4- // --- Card content → Card.Content ---
4+ // --- Card content → Card.Body ---
55// NOTE: Skipped INSTANCE_SWAP "image" → no matching code prop "image"
66figma . connect (
7- Card . Content ,
7+ Card . Body ,
88 "https://www.figma.com/design/AvtPX6g7OGGCRvNlatGOIY/NIMBUS-design-system?node-id=266-482" ,
99 {
1010 props : {
@@ -20,10 +20,10 @@ figma.connect(
2020 < >
2121 { props . leadingElement }
2222 { props . header }
23- < Card . Content >
23+ < Card . Body >
2424 { props . instance }
2525 { props . children }
26- </ Card . Content >
26+ </ Card . Body >
2727 </ >
2828 ) ,
2929 }
@@ -36,13 +36,13 @@ figma.connect(
3636 {
3737 props : {
3838 children : figma . children ( "*" ) ,
39- borderStyle : figma . enum ( "Outlined" , { Yes : "outlined" , No : "none" } ) ,
40- elevation : figma . enum ( "Elevated" , { Yes : "elevated" , No : "none" } ) ,
39+ variant : figma . enum ( "Elevated" , {
40+ Yes : "elevated" as const ,
41+ No : "outlined" as const ,
42+ } ) ,
4143 } ,
4244 example : ( props ) => (
43- < Card . Root borderStyle = { props . borderStyle } elevation = { props . elevation } >
44- { props . children }
45- </ Card . Root >
45+ < Card . Root variant = { props . variant } > { props . children } </ Card . Root >
4646 ) ,
4747 }
4848) ;
You can’t perform that action at this time.
0 commit comments