@jupyter-notebook/web-components
Version:
A component library for building extensions in Jupyter frontends.
28 lines (27 loc) • 810 B
JavaScript
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { Switch, switchTemplate as template } from '@microsoft/fast-foundation';
import { switchStyles as styles } from './switch.styles';
/**
* A function that returns a {@link @microsoft/fast-foundation#Switch} registration for configuring the component with a DesignSystem.
* Implements {@link @microsoft/fast-foundation#switchTemplate}
*
*
* @public
* @remarks
* Generates HTML Element: `<jp-switch>`
*/
export const jpSwitch = Switch.compose({
baseName: 'switch',
template,
styles,
switch: /* html */ `
<span class="checked-indicator" part="checked-indicator"></span>
`
});
/**
* Base class for Switch
* @public
*/
export { Switch };
export { styles as switchStyles };