@carbon/storybook-addon-theme
Version:
Carbon theme switcher for Storybook
21 lines (19 loc) • 565 B
JavaScript
;
var _managerApi = require("@storybook/manager-api");
var _Panel = require("./Panel");
/**
* Copyright IBM Corp. 2023, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const ADDON_ID = 'carbonTheme';
const PANEL_ID = `${ADDON_ID}/panel`;
_managerApi.addons.register(ADDON_ID, () => {
_managerApi.addons.add(PANEL_ID, {
type: _managerApi.types.PANEL,
title: 'Carbon Theme',
render: _Panel.Panel
});
});
//# sourceMappingURL=manager.js.map