mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
8875ca7043
* feat: Avatar.Group adding max props * feat: update * feat: update * feat: update test case * feat: update docs * Update components/avatar/index.en-US.md Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: Wanpan <wanpan96@163.com> * feat: update docs * feat: update * feat: update snap * feat: delete default value --------- Signed-off-by: Wanpan <wanpan96@163.com> Co-authored-by: afc163 <afc163@gmail.com>
19 lines
350 B
TypeScript
19 lines
350 B
TypeScript
import * as React from 'react';
|
|
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('avatar');
|
|
|
|
rootPropsTest(
|
|
'avatar',
|
|
(Avatar, props) => (
|
|
<Avatar.Group {...props} max={{ count: 1 }}>
|
|
<Avatar>Bamboo</Avatar>
|
|
<Avatar>Light</Avatar>
|
|
</Avatar.Group>
|
|
),
|
|
{
|
|
name: 'Avatar.Group',
|
|
},
|
|
);
|