build(#10336): write stories for MkAd
This commit is contained in:
parent
98fd6b5879
commit
70fc25aac1
9 changed files with 223 additions and 18 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import { StoryObj } from '@storybook/vue3';
|
||||
import { userDetailed } from '../../../.storybook/fakes';
|
||||
import MkAvatar from './MkAvatar.vue';
|
||||
export const Default = {
|
||||
const common = {
|
||||
render(args) {
|
||||
return {
|
||||
components: {
|
||||
|
|
@ -25,7 +25,6 @@ export const Default = {
|
|||
};
|
||||
},
|
||||
args: {
|
||||
size: 48,
|
||||
user: userDetailed,
|
||||
},
|
||||
decorators: [
|
||||
|
|
@ -39,9 +38,9 @@ export const Default = {
|
|||
},
|
||||
} satisfies StoryObj<typeof MkAvatar>;
|
||||
export const ProfilePage = {
|
||||
...Default,
|
||||
...common,
|
||||
args: {
|
||||
...Default.args,
|
||||
...common.args,
|
||||
size: 120,
|
||||
indicator: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue