Commit 3fbf7e2 1 parent 1f713f0 commit 3fbf7e2 Copy full SHA for 3fbf7e2
File tree 1 file changed +18
-1
lines changed
src/components/AvatarStack
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,26 @@ export interface AvatarStackProps {
16
16
* | `xl` | `l` |
17
17
*/
18
18
overlapSize ?: AvatarStackOverlapSize ;
19
+ /**
20
+ * Size for control displaying count of extra avatars
21
+ */
19
22
size ?: AvatarSize ;
20
23
className ?: string ;
21
- /** Avatars and optionally `<AvatarStack.MoreButton/>` */
24
+ /**
25
+ * Children would be wrapped for "stacking"
26
+ * @example
27
+ * <AvatarStack>
28
+ * <Avatar/>
29
+ * <Tooltip content="Some info"><Avatar/></Tooltip>
30
+ * </AvatarStack>
31
+ */
22
32
children ?: React . ReactNode ;
33
+ /**
34
+ * Custom render for control displaying extra data
35
+ * @example
36
+ * <AvatarStack renderMoreButton={({count}) => <Button>+{count}</Button>}>
37
+ * <Avatar/>
38
+ * </AvatarStack>
39
+ */
23
40
renderMoreButton ?: ( options : { count : number } ) => React . ReactElement ;
24
41
}
You can’t perform that action at this time.
0 commit comments