UNPKG

@inkline/paper

Version:

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

5 lines (4 loc) 191 B
import { h } from "../index.mjs"; export const createStory = (Component, storyArgs = {}) => (args) => h("div", { class: `storybook-example ${storyArgs.class || ""}` }, h(Component, args));