Skip to content

Commit 90bd930

Browse files
committed
update
1 parent 8115190 commit 90bd930

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)