@jupyter/web-components
Version:
A component library for building extensions in Jupyter frontends.
55 lines (54 loc) • 2.17 kB
TypeScript
import { TextArea } from '@microsoft/fast-foundation';
import { textAreaStyles as styles } from './text-area.styles.js';
/**
* Text area appearances
* @public
*/
export type TextAreaAppearance = 'filled' | 'outline';
/**
* Textarea class
*
* @public
* @tagname jp-text-area
*
* @fires select - Emits a custom 'select' event when the textarea emits a select event
*/
declare class JupyterTextArea extends TextArea {
/**
* The appearance of the element.
*
* @public
* @remarks
* HTML Attribute: appearance
*/
appearance: TextAreaAppearance;
}
/**
* A function that returns a {@link @microsoft/fast-foundation#TextArea} registration for configuring the component with a DesignSystem.
* Implements {@link @microsoft/fast-foundation#textAreaTemplate}
*
*
* @public
* @remarks
* Generates HTML Element: `<jp-text-area>`
*
* {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
*/
export declare const jpTextArea: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
baseName: string;
baseClass: typeof TextArea;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<TextArea, any>, import("@microsoft/fast-foundation").FoundationElementDefinition>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles>;
shadowOptions: {
delegatesFocus: true;
};
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
baseName: string;
baseClass: typeof TextArea;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<TextArea, any>, import("@microsoft/fast-foundation").FoundationElementDefinition>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles>;
shadowOptions: {
delegatesFocus: true;
};
}, typeof JupyterTextArea>;
export { JupyterTextArea as TextArea, styles as textAreaStyles };