UNPKG

@synergy-design-system/react

Version:
42 lines (41 loc) 2.38 kB
import Component from '@synergy-design-system/components/components/textarea/textarea.component.js'; import { type EventName } from '@lit/react'; import type { SynBlurEvent } from '@synergy-design-system/components'; import type { SynChangeEvent } from '@synergy-design-system/components'; import type { SynFocusEvent } from '@synergy-design-system/components'; import type { SynInputEvent } from '@synergy-design-system/components'; import type { SynInvalidEvent } from '@synergy-design-system/components'; /** * @summary Textareas collect data from the user and allow multiple lines of text. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-textarea--docs * @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 syn-blur - Emitted when the control loses focus. * @event syn-change - Emitted when an alteration to the control's value is committed by the user. * @event syn-focus - Emitted when the control gains focus. * @event syn-input - Emitted when the control receives input. * @event syn-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. */ export declare const SynTextarea: import("@lit/react").ReactWebComponent<Component, { onSynBlur: EventName<SynBlurEvent>; onSynChange: EventName<SynChangeEvent>; onSynFocus: EventName<SynFocusEvent>; onSynInput: EventName<SynInputEvent>; onSynInvalid: EventName<SynInvalidEvent>; }>; export type { SynBlurEvent } from '@synergy-design-system/components'; export type { SynChangeEvent } from '@synergy-design-system/components'; export type { SynFocusEvent } from '@synergy-design-system/components'; export type { SynInputEvent } from '@synergy-design-system/components'; export type { SynInvalidEvent } from '@synergy-design-system/components';