UNPKG

wix-storybook-utils

Version:

Utilities for automated component documentation within Storybook

27 lines 941 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var react_2 = require("@storybook/react"); var __1 = tslib_1.__importDefault(require("..")); var tests = [ { it: 'render with string based title', props: { title: 'title', }, }, { it: 'render with node based title', props: { title: 'not shown', children: react_1.default.createElement("a", null, "node"), }, }, ]; tests.forEach(function (_a) { var it = _a.it, props = _a.props; (0, react_2.storiesOf)('AnchoredTitle', module).add(it, function () { return (react_1.default.createElement("div", { style: { marginLeft: '50px' } }, react_1.default.createElement(__1.default, tslib_1.__assign({}, props)))); }); }); //# sourceMappingURL=AnchoredTitle.visual.js.map