wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
25 lines • 772 B
JavaScript
import { __assign } from "tslib";
import React from 'react';
import { storiesOf } from '@storybook/react';
import AnchoredTitle from '..';
var tests = [
{
it: 'render with string based title',
props: {
title: 'title',
},
},
{
it: 'render with node based title',
props: {
title: 'not shown',
children: React.createElement("a", null, "node"),
},
},
];
tests.forEach(function (_a) {
var it = _a.it, props = _a.props;
storiesOf('AnchoredTitle', module).add(it, function () { return (React.createElement("div", { style: { marginLeft: '50px' } },
React.createElement(AnchoredTitle, __assign({}, props)))); });
});
//# sourceMappingURL=AnchoredTitle.visual.js.map