UNPKG

@jupyter/web-components

Version:

A component library for building extensions in Jupyter frontends.

17 lines (16 loc) 589 B
// Copyright (c) Jupyter Development Team. // Copyright (c) Microsoft Corporation. // Distributed under the terms of the Modified BSD License. import { PropertyStyleSheetBehavior } from '@microsoft/fast-foundation'; /** * Behavior that will conditionally apply a stylesheet based on the elements * appearance property * * @param value - The value of the appearance property * @param styles - The styles to be applied when condition matches * * @public */ export function appearanceBehavior(value, styles) { return new PropertyStyleSheetBehavior('appearance', value, styles); }