File tree Expand file tree Collapse file tree 3 files changed +83
-6
lines changed
packages/ibm-products/src/components/Guidebanner Expand file tree Collapse file tree 3 files changed +83
-6
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ figma.connect(
26
26
Collapsable : true ,
27
27
} ) ,
28
28
title : figma . string ( 'Header text' ) ,
29
- children : figma . enum ( 'Type' , {
30
- Static : undefined ,
31
- Expandable : figma . instance ( 'Swap slot' ) ,
32
- } ) ,
29
+ // children: figma.enum('Type', {
30
+ // "Not collapsible": undefined,
31
+ // Collapsible: figma.children('_Insight'),
32
+ // }),
33
+ children : figma . children ( '_Insight' ) ,
33
34
open : figma . boolean ( 'Expanded' ) ,
34
- expandButtonLabel : figma . textContent ( 'Read more' ) ,
35
35
// No matching props could be found for these Figma properties:
36
36
// "headerText": figma.string('Header text'),
37
37
// "expanded": figma.boolean('Expanded'),
@@ -42,7 +42,6 @@ figma.connect(
42
42
collapsible = { props . collapsible }
43
43
title = { props . title }
44
44
open = { props . open }
45
- expandButtonLabel = { props . expandButtonLabel }
46
45
>
47
46
{ props . children }
48
47
</ Guidebanner >
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import React from 'react' ;
9
+ import { GuidebannerElement } from './GuidebannerElement' ;
10
+ import figma from '@figma/code-connect' ;
11
+
12
+ /**
13
+ * -- This file was auto-generated by Code Connect --
14
+ * None of your props could be automatically mapped to Figma properties.
15
+ * You should update the `props` object to include a mapping from your
16
+ * code props to Figma properties, and update the `example` function to
17
+ * return the code example you'd like to see in Figma
18
+ */
19
+
20
+ figma . connect (
21
+ GuidebannerElement ,
22
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=16728%3A642201' ,
23
+ {
24
+ props : {
25
+ description : figma . enum ( 'Content' , {
26
+ 'Plain text' : 'plain-text' ,
27
+ 'Non linear' : 'non-linear' ,
28
+ } ) ,
29
+ // button: figma.enum('CTA', {
30
+ // "Tertiary button": "tertiary-button",
31
+ // "Ghost button": "ghost-button",
32
+ // "Link": "link",
33
+ // "No CTA": "no-cta"
34
+ // })
35
+ button : figma . children ( '_Guide banner button' ) ,
36
+ } ,
37
+ example : ( props ) => (
38
+ < GuidebannerElement
39
+ description = { props . description }
40
+ button = { props . button }
41
+ />
42
+ ) ,
43
+ }
44
+ ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import React from 'react' ;
9
+ import { GuidebannerElementButton } from './GuidebannerElementButton' ;
10
+ import figma from '@figma/code-connect' ;
11
+
12
+ /**
13
+ * -- This file was auto-generated by Code Connect --
14
+ * None of your props could be automatically mapped to Figma properties.
15
+ * You should update the `props` object to include a mapping from your
16
+ * code props to Figma properties, and update the `example` function to
17
+ * return the code example you'd like to see in Figma
18
+ */
19
+
20
+ figma . connect (
21
+ GuidebannerElementButton ,
22
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=17606%3A27272' ,
23
+ {
24
+ props : {
25
+ children : figma . enum ( 'State' , {
26
+ Enabled : figma . string ( 'Text' ) ,
27
+ Hover : figma . string ( 'Text' ) ,
28
+ } ) ,
29
+ } ,
30
+ example : ( props ) => (
31
+ < GuidebannerElementButton > { props . children } </ GuidebannerElementButton >
32
+ ) ,
33
+ }
34
+ ) ;
You can’t perform that action at this time.
0 commit comments