wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
17 lines • 627 B
JavaScript
import { __assign, __spreadArray } from "tslib";
import React from 'react';
import { storiesOf } from '@storybook/react';
import Heading from '..';
var as = ['h1', 'h2', 'h3', 'h4', 'h5'];
var tests = __spreadArray([], as.map(function (value) { return ({
it: "should render as=".concat(value),
props: {
as: value,
children: "Heading ".concat(value),
},
}); }), true);
tests.forEach(function (_a) {
var it = _a.it, props = _a.props;
storiesOf('Heading', module).add(it, function () { return React.createElement(Heading, __assign({}, props)); });
});
//# sourceMappingURL=Heading.visual.js.map