import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlTextareaElement from "@shoelace-style/shoelace/dist/components/textarea/textarea.js";
import {
SlBlurEvent,
SlChangeEvent,
SlFocusEvent,
SlInputEvent,
SlInvalidEvent,
} from "../events";
export type { SlTextareaElement };
export type SlTextareaBlurEvent = SlBlurEvent;
export type SlTextareaChangeEvent = SlChangeEvent;
export type SlTextareaFocusEvent = SlFocusEvent;
export type SlTextareaInputEvent = SlInputEvent;
export type SlTextareaInvalidEvent = SlInvalidEvent;
export interface SlTextareaProps extends HTMLAttributes {
ref?: Ref;
/**
*
*/
title?: string;
/**
* The name of the textarea, submitted as a name/value pair with form data.
*/
name?: string;
/**
* The current value of the textarea, submitted as a name/value pair with form data.
*/
value?: string;
/**
* The textarea's size.
*/
size?: "small" | "medium" | "large";
/**
* Draws a filled textarea.
*/
filled?: boolean;
/**
* The textarea's label. If you need to display HTML, use the `label` slot instead.
*/
label?: string;
/**
* The textarea's help text. If you need to display HTML, use the `help-text` slot instead.
*/
helpText?: string;
/**
* Placeholder text to show as a hint when the input is empty.
*/
placeholder?: string;
/**
* The number of rows to display by default.
*/
rows?: number;
/**
* Controls how the textarea can be resized.
*/
resize?: "none" | "vertical" | "auto";
/**
* Disables the textarea.
*/
disabled?: boolean;
/**
* Makes the textarea readonly.
*/
readonly?: boolean;
/**
* By default, form controls are associated with the nearest containing `