Skip to content

Commit 85fc108

Browse files
committed
chore: support size in stories
1 parent 3fbf7e2 commit 85fc108

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/AvatarStack/__stories__/AvatarStack.stories.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,21 @@ function getTemplateChildren(args: ComponentType) {
6161
}
6262

6363
const Template: StoryFn<ComponentType> = (args) => {
64-
const {avatarSize: _, ...props} = args;
65-
return <AvatarStack {...props}>{getTemplateChildren(args)}</AvatarStack>;
64+
const {avatarSize, size, ...props} = args;
65+
return (
66+
<AvatarStack {...props} size={size || avatarSize}>
67+
{getTemplateChildren(args)}
68+
</AvatarStack>
69+
);
6670
};
6771

6872
const TemplateWithButtonOverride: StoryFn<ComponentType> = (args) => {
69-
const {avatarSize, ...props} = args;
73+
const {avatarSize, size, ...props} = args;
7074

7175
return (
7276
<AvatarStack
7377
{...props}
78+
size={size || avatarSize}
7479
renderMoreButton={({count}) => (
7580
<Tooltip content={'Somehow display list of all other items'}>
7681
<AvatarStack.MoreButton

0 commit comments

Comments
 (0)