@luigiminardim/storybook-addon-globals-controls
Version:
@luigiminardim/storybook-addon-globals-controls gives you a graphical UI to dynamically interact with the Storybook's globals variables. It creates an addon panel next to your component examples ("stories"), so you can edit them live.
15 lines (12 loc) • 323 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withGlobals = void 0;
var withGlobals = function withGlobals(decorated) {
return function (story, context) {
var values = context.globals;
return decorated(story, values, context);
};
};
exports.withGlobals = withGlobals;