-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avatarGroup): add figma code connect for avatar group component
- Loading branch information
1 parent
ef3d403
commit 5af38b7
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React from 'react'; | ||
import { Avatar, AvatarGroup } from '@/index'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect(AvatarGroup, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS---Web?node-id=37-593', { | ||
imports: ["import { AvatarGroup } from '@innovaccer/design-system'"], | ||
props: { | ||
size: figma.enum('Size', { | ||
Regular: 'regular', | ||
Small: 'tiny', | ||
}), | ||
max: figma.enum('Count', { | ||
'Less than three': 3, | ||
'More than three': 2, | ||
}), | ||
list: figma.enum('Type', { | ||
Initial: [ | ||
{ | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
}, | ||
{ | ||
firstName: 'Jane', | ||
lastName: 'Doe', | ||
}, | ||
], | ||
Icon: [ | ||
{ | ||
firstName: 'Rachel', | ||
lastName: 'Green', | ||
icon: <Avatar.Icon name="person" />, | ||
}, | ||
{ | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
icon: <Avatar.Icon name="person" />, | ||
}, | ||
], | ||
Image: [ | ||
{ | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
image: <Avatar.Image src="url" />, | ||
}, | ||
{ | ||
firstName: 'Rachel', | ||
lastName: 'Green', | ||
image: <Avatar.Image src="url" />, | ||
}, | ||
], | ||
}), | ||
}, | ||
example: (props) => <AvatarGroup {...props} />, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters