Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Storybook Story - Todo component
/* eslint-disable react/react-in-jsx-scope, react/no-this-in-sfc */
import { storiesOf } from "@storybook/vue";
import Todo from "./../src/components/Todo.vue";
import { todoStorage, filters } from "./../src/utils";
import { TodoFocus } from "./../src/directives";
const stories = storiesOf("Todo App", module);
stories.add("Default", () => ({
components: {
Todo
},
directives: {
'todo-focus': TodoFocus
},
data() {
return {
todoStore: todoStorage,
filters: filters
};
},
template: '<Todo :todoStore="todoStore" :filters="filters"></Todo>'
}));
/* eslint-enable react/react-in-jsx-scope */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.