@omni-door/tpl-component-library-react
Version:
The React component-library-react project template
8 lines (7 loc) • 631 B
JavaScript
;
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;