27 lines
992 B
TypeScript
27 lines
992 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import { addons } from '@storybook/addons';
|
|
import { create } from '@storybook/theming';
|
|
import { registerThemeSwitcherAddon } from './register_theme_switcher_addon';
|
|
|
|
// This configures the "Manager", or main outer view of Storybook. It is an
|
|
// addon that's loaded by the `managerEntries` part of the preset in ../preset.js.
|
|
addons.setConfig({
|
|
theme: create({
|
|
base: 'light',
|
|
brandTitle: 'Kibana Storybook',
|
|
brandUrl: 'https://github.com/elastic/kibana/tree/master/packages/kbn-storybook',
|
|
}),
|
|
showPanel: false,
|
|
isFullscreen: false,
|
|
panelPosition: 'bottom',
|
|
isToolshown: true,
|
|
});
|
|
|
|
registerThemeSwitcherAddon();
|