File tree Expand file tree Collapse file tree 10 files changed +25
-47
lines changed
packages/code-connect/components Expand file tree Collapse file tree 10 files changed +25
-47
lines changed Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { Alert } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Alert integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/alert
7
- */
8
-
9
4
figma . connect (
10
5
Alert ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2698&m=dev' ,
@@ -24,6 +19,9 @@ figma.connect(
24
19
Custom : 'custom'
25
20
} )
26
21
} ,
27
- example : ( props ) => < Alert isExpandable = { props . isExpandable } isInline title = { props . title } variant = { props . variant } />
22
+ example : ( props ) => (
23
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
24
+ < Alert isExpandable = { props . isExpandable } isInline title = { props . title } variant = { props . variant } />
25
+ )
28
26
}
29
27
) ;
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { AlertGroup } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Alert integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/alert
7
- */
8
-
9
4
figma . connect (
10
5
AlertGroup ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2780&m=dev' ,
12
7
{
13
8
props : {
14
- // children
15
9
children : figma . children ( '*' )
16
10
} ,
17
11
example : ( props ) => (
12
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
18
13
< AlertGroup isLiveRegion hasAnimations >
19
14
{ props . children }
20
15
</ AlertGroup >
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { Alert } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Alert integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/alert
7
- */
8
-
9
4
figma . connect (
10
5
Alert ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2754&m=dev' ,
@@ -27,6 +22,7 @@ figma.connect(
27
22
children : figma . children ( '*' )
28
23
} ,
29
24
example : ( props ) => (
25
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
30
26
< Alert variant = { props . variant } title = { props . title } variantLabel = { props . variant } isInline isPlain />
31
27
)
32
28
}
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ figma.connect(
16
16
17
17
children : figma . children ( '*' )
18
18
} ,
19
- example : ( props ) => < AlertGroup overflowMessage = { props . overflowMessage } > { props . children } </ AlertGroup >
19
+ example : ( props ) => (
20
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
21
+ < AlertGroup overflowMessage = { props . overflowMessage } > { props . children } </ AlertGroup >
22
+ )
20
23
}
21
24
) ;
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ figma.connect(
24
24
Warning : 'warning'
25
25
} )
26
26
} ,
27
- example : ( props ) => < Alert title = { props . title } variant = { props . variant } isExpandable = { props . isExpandable } />
27
+ example : ( props ) => (
28
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
29
+ < Alert title = { props . title } variant = { props . variant } isExpandable = { props . isExpandable } />
30
+ )
28
31
}
29
32
) ;
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { AlertGroup } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Alert integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/alert
7
- */
8
-
9
4
figma . connect (
10
5
AlertGroup ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2821&m=dev' ,
@@ -14,6 +9,7 @@ figma.connect(
14
9
children : figma . children ( '*' )
15
10
} ,
16
11
example : ( props ) => (
12
+ // Documentation for Alert can be found at https://www.patternfly.org/components/alert
17
13
< AlertGroup isToast isLiveRegion hasAnimations >
18
14
{ props . children }
19
15
</ AlertGroup >
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { Avatar } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Avatar integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/avatar
7
- */
8
-
9
4
figma . connect (
10
5
Avatar ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=1561-4342&m=dev' ,
@@ -23,6 +18,7 @@ figma.connect(
23
18
} )
24
19
} ,
25
20
example : ( props ) => (
21
+ // Documentation for Avatar can be found at https://www.patternfly.org/components/avatar
26
22
< Avatar alt = "Avatar" src = "/assets/images/avatar.svg" isBordered = { props . isBordered } size = { props . size } />
27
23
)
28
24
}
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { BackToTop } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly BackToTop integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/back-to-top
7
- */
8
-
9
4
figma . connect (
10
5
BackToTop ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1521-958&m=dev' ,
12
7
{
13
8
props : {
14
9
text : figma . string ( 'Text' )
15
10
} ,
16
- example : ( props ) => < BackToTop title = { props . text } />
11
+ example : ( props ) => (
12
+ // Documentation for BackToTop can be found at https://www.patternfly.org/components/back-to-top
13
+ < BackToTop title = { props . text } />
14
+ )
17
15
}
18
16
) ;
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { Backdrop } from '@patternfly/react-core' ;
3
3
4
- /**
5
- /**
6
- * PatternFly Backdrop integration for Figma Code Connect
7
- * @patternfly https://www.patternfly.org/components/backdrop
8
- */
9
-
10
4
figma . connect (
11
5
Backdrop ,
12
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=2873-2900&m=dev' ,
13
7
{
14
- example : ( ) => < Backdrop />
8
+ example : ( ) => (
9
+ // Documentation for Backdrop can be found at https://www.patternfly.org/components/backdrop
10
+ < Backdrop />
11
+ )
15
12
}
16
13
) ;
Original file line number Diff line number Diff line change 1
1
import figma from '@figma/code-connect' ;
2
2
import { Badge } from '@patternfly/react-core' ;
3
3
4
- /**
5
- * PatternFly Badge integration for Figma Code Connect
6
- * @patternfly https://www.patternfly.org/components/badge
7
- */
8
-
9
4
figma . connect (
10
5
Badge ,
11
6
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1259-1132&m=dev' ,
@@ -21,6 +16,7 @@ figma.connect(
21
16
} )
22
17
} ,
23
18
example : ( props ) => (
19
+ // Documentation for Badge can be found at https://www.patternfly.org/components/badge
24
20
< Badge isRead = { props . isRead } isDisabled = { props . isDisabled } screenReaderText = "Badge" >
25
21
{ props . text }
26
22
</ Badge >
You can’t perform that action at this time.
0 commit comments