storybook/docs/snippets/vue/app-story-with-mock.3.js.mdx
2021-08-28 01:52:57 +01:00

36 lines
556 B
Plaintext

```js
// App.stories.js
import App from './App.vue';
export default {
component: App,
};
export const Success = {
parameters: {
fetch: {
json: {
JavaScript: 3390991,
'C++': 44974,
TypeScript: 15530,
CoffeeScript: 12253,
Python: 9383,
C: 5341,
Shell: 5115,
HTML: 3420,
CSS: 3171,
Makefile: 189,
},
},
},
render: (args) => ({
components: { App },
setup() {
return { args };
},
template: '<App v-bind="args" />',
}),
};
```