We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8115190 commit 90bd930Copy full SHA for 90bd930
1 file changed
packages/react-core/codeConnect/components/Avatar/Avatar.figma.tsx
@@ -0,0 +1,28 @@
1
+import figma from '@figma/code-connect';
2
+import { Avatar } from '@patternfly/react-core';
3
+
4
+/**
5
+ * PatternFly Avatar component integration for Figma Code Connect
6
+ */
7
8
+figma.connect(
9
+ Avatar,
10
+ 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=1561-4342&m=dev',
11
+ {
12
+ props: {
13
+ // boolean
14
+ isBordered: figma.boolean('Bordered'),
15
16
+ // enum
17
+ size: figma.enum('Size', {
18
+ small: 'sm',
19
+ med: 'md',
20
+ lg: 'lg',
21
+ XL: 'xl'
22
+ })
23
+ },
24
+ example: (props) => (
25
+ <Avatar alt="Avatar" src="/assets/images/avatar.svg" isBordered={props.isBordered} size={props.size} />
26
+ )
27
+ }
28
+);
0 commit comments