wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
19 lines • 781 B
JavaScript
;
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 as = ['h1', 'h2', 'h3', 'h4', 'h5'];
var tests = tslib_1.__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;
(0, react_2.storiesOf)('Heading', module).add(it, function () { return react_1.default.createElement(__1.default, tslib_1.__assign({}, props)); });
});
//# sourceMappingURL=Heading.visual.js.map