import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlInputElement from "@shoelace-style/shoelace/dist/components/input/input.js";
import {
SlBlurEvent,
SlChangeEvent,
SlClearEvent,
SlFocusEvent,
SlInputEvent,
SlInvalidEvent,
} from "../events";
export type { SlInputElement };
export type SlInputBlurEvent = SlBlurEvent;
export type SlInputChangeEvent = SlChangeEvent;
export type SlInputClearEvent = SlClearEvent;
export type SlInputFocusEvent = SlFocusEvent;
export type SlInputInputEvent = SlInputEvent;
export type SlInputInvalidEvent = SlInvalidEvent;
export interface SlInputProps extends HTMLAttributes {
ref?: Ref;
/**
*
*/
title?: string;
/**
* The type of input. Works the same as a native `` element, but only a subset of types are supported. Defaults
* to `text`.
*/
type?:
| "date"
| "datetime-local"
| "email"
| "number"
| "password"
| "search"
| "tel"
| "text"
| "time"
| "url";
/**
* The name of the input, submitted as a name/value pair with form data.
*/
name?: string;
/**
* The current value of the input, submitted as a name/value pair with form data.
*/
value?: string;
/**
* The input's size.
*/
size?: "small" | "medium" | "large";
/**
* Draws a filled input.
*/
filled?: boolean;
/**
* Draws a pill-style input with rounded edges.
*/
pill?: boolean;
/**
* The input's label. If you need to display HTML, use the `label` slot instead.
*/
label?: string;
/**
* The input's help text. If you need to display HTML, use the `help-text` slot instead.
*/
helpText?: string;
/**
* Adds a clear button when the input is not empty.
*/
clearable?: boolean;
/**
* Disables the input.
*/
disabled?: boolean;
/**
* Placeholder text to show as a hint when the input is empty.
*/
placeholder?: string;
/**
* Makes the input readonly.
*/
readonly?: boolean;
/**
* Adds a button to toggle the password's visibility. Only applies to password types.
*/
passwordToggle?: boolean;
/**
* Determines whether or not the password is currently visible. Only applies to password input types.
*/
passwordVisible?: boolean;
/**
* Hides the browser's built-in increment/decrement spin buttons for number inputs.
*/
noSpinButtons?: boolean;
/**
* By default, form controls are associated with the nearest containing `