addons/components/explorer/index.tsxblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import 'react';
b69ab319import ReactDOM from 'react-dom/client';
b69ab3110import {ThemedComponentsRoot} from '../ThemedComponentsRoot';
b69ab3111import {ViewportOverlayRoot} from '../ViewportOverlay';
b69ab3112import ComponentExplorer from './ComponentExplorer';
b69ab3113
b69ab3114import './index.css';
b69ab3115
b69ab3116import '../theme/themeDark.css';
b69ab3117import '../theme/themeLight.css';
b69ab3118
b69ab3119// Include CSS variables we use, originally from vscode-webview-ui-toolkit
b69ab3120import '../theme/themeDarkVariables.css';
b69ab3121import '../theme/themeLightVariables.css';
b69ab3122
b69ab3123import '../theme/index.css';
b69ab3124
b69ab3125// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
b69ab3126const root = ReactDOM.createRoot(document.getElementById('root')!);
b69ab3127root.render(
b69ab3128 <ThemedComponentsRoot theme="light">
b69ab3129 <ComponentExplorer />
b69ab3130 <ViewportOverlayRoot />
b69ab3131 </ThemedComponentsRoot>,
b69ab3132);