UNPKG

@omni-door/tpl-component-library-react

Version:
8 lines (7 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function default_1(config) { var componentName = config.componentName; return "import * as React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport " + componentName + " from '../index';\n\nstoriesOf('" + componentName + "', module)\n .addParameters({\n readme: {\n sidebar: require('../README.md').default,\n highlightSidebar: true,\n codeTheme: 'github'\n },\n })\n .add('with text', () => <" + componentName + ">Hello " + componentName + "</" + componentName + ">);\n"; } exports.default = default_1;