43 lines
2.1 KiB
TypeScript
43 lines
2.1 KiB
TypeScript
|
import Component from '../../components/textarea/textarea.component.js';
|
||
|
import { type EventName } from '@lit/react';
|
||
|
import type { SlBlurEvent } from '../../events/events.js';
|
||
|
import type { SlChangeEvent } from '../../events/events.js';
|
||
|
import type { SlFocusEvent } from '../../events/events.js';
|
||
|
import type { SlInputEvent } from '../../events/events.js';
|
||
|
import type { SlInvalidEvent } from '../../events/events.js';
|
||
|
export type { SlBlurEvent } from '../../events/events.js';
|
||
|
export type { SlChangeEvent } from '../../events/events.js';
|
||
|
export type { SlFocusEvent } from '../../events/events.js';
|
||
|
export type { SlInputEvent } from '../../events/events.js';
|
||
|
export type { SlInvalidEvent } from '../../events/events.js';
|
||
|
/**
|
||
|
* @summary Textareas collect data from the user and allow multiple lines of text.
|
||
|
* @documentation https://shoelace.style/components/textarea
|
||
|
* @status stable
|
||
|
* @since 2.0
|
||
|
*
|
||
|
* @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
|
||
|
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
||
|
*
|
||
|
* @event sl-blur - Emitted when the control loses focus.
|
||
|
* @event sl-change - Emitted when an alteration to the control's value is committed by the user.
|
||
|
* @event sl-focus - Emitted when the control gains focus.
|
||
|
* @event sl-input - Emitted when the control receives input.
|
||
|
* @event sl-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
||
|
*
|
||
|
* @csspart form-control - The form control that wraps the label, input, and help text.
|
||
|
* @csspart form-control-label - The label's wrapper.
|
||
|
* @csspart form-control-input - The input's wrapper.
|
||
|
* @csspart form-control-help-text - The help text's wrapper.
|
||
|
* @csspart base - The component's base wrapper.
|
||
|
* @csspart textarea - The internal `<textarea>` control.
|
||
|
*/
|
||
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
||
|
onSlBlur: EventName<SlBlurEvent>;
|
||
|
onSlChange: EventName<SlChangeEvent>;
|
||
|
onSlFocus: EventName<SlFocusEvent>;
|
||
|
onSlInput: EventName<SlInputEvent>;
|
||
|
onSlInvalid: EventName<SlInvalidEvent>;
|
||
|
}>;
|
||
|
export default reactWrapper;
|