blob: 110c6c73badf6ca8a30eb7f690a22003ca565336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import ProjectAvatar from './project_avatar.vue';
export default {
component: ProjectAvatar,
title: 'vue_shared/components/project_avatar',
};
const Template = (args, { argTypes }) => ({
components: { ProjectAvatar },
props: Object.keys(argTypes),
template: '<project-avatar v-bind="$props" />',
});
export const Default = Template.bind({});
Default.args = {
projectAvatarUrl:
'https://gitlab.com/uploads/-/system/project/avatar/278964/logo-extra-whitespace.png?width=64',
projectName: 'GitLab',
};
export const FallbackAvatar = Template.bind({});
FallbackAvatar.args = {
projectName: 'GitLab',
};
export const EmptyAltTag = Template.bind({});
EmptyAltTag.args = {
...Default.args,
alt: '',
};
|