UNPKG

@inkline/paper

Version:

Paper is a unified interface for defining components for Vue and React using a single code base.

7 lines (6 loc) 249 B
import { defineComponent, h } from "../index.mjs"; export const createStory = (component, storyArgs = {}) => (args) => defineComponent({ render: () => h("div", { class: `storybook-example ${storyArgs.class || ""}` }, h(component, args)) });