storybook-addon-theme-provider
Version:
Storybook addon to manage global themes provided by Styled components, Emotion or any other solution based on React component. Compatible with Storybook versions 7 and 8
32 lines (31 loc) • 656 B
JavaScript
import { w as r } from "./withThemeProvider-BzEFvOAD.js";
import { jsx as a } from "react/jsx-runtime";
const m = ({
children: e,
theme: o = {}
}) => /* @__PURE__ */ a("div", { className: o.name, children: e }), c = process.env.NODE_ENV === "development" ? {
decorators: [r(m)],
globals: {
selectedTheme: "foo",
themes: [
{
name: "foo",
color: "#1ea7fd",
themeObject: {
name: "foo"
}
},
{
name: "bar",
color: "#abfd1e",
themeObject: {
name: "bar"
}
}
]
}
} : {};
export {
c as default
};
//# sourceMappingURL=preview.js.map