Skip to content

Commit eba091d

Browse files
committed
better source code, and visible image arg, in avatar stories
1 parent d27ba94 commit eba091d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

component-library/src/components/wrapped/BccAvatar/BccAvatar.stories.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const meta = {
2828
control: 'boolean',
2929
description: 'Child variant; combines with gender for teal (male) or magenta (female).',
3030
},
31+
image: { control: 'text', description: 'URL of the avatar image' },
3132
},
3233
tags: ['autodocs'],
3334
} satisfies Meta<typeof BccAvatar>;
@@ -68,6 +69,13 @@ export const Image: Story = {
6869
/>
6970
`,
7071
}),
72+
parameters: {
73+
docs: {
74+
source: {
75+
code: `<BccAvatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />`,
76+
},
77+
},
78+
},
7179
};
7280

7381
export const Icon: Story = {

0 commit comments

Comments
 (0)