Files
clawdbot/apps/macos/Sources/Clawdis/Resources/WebChat/components/Input.d.ts
2025-12-06 05:01:28 +01:00

26 lines
929 B
TypeScript

import { type BaseComponentProps } from "@mariozechner/mini-lit/dist/mini.js";
import { type Ref } from "lit/directives/ref.js";
export type InputType = "text" | "email" | "password" | "number" | "url" | "tel" | "search";
export type InputSize = "sm" | "md" | "lg";
export interface InputProps extends BaseComponentProps {
type?: InputType;
size?: InputSize;
value?: string;
placeholder?: string;
label?: string;
error?: string;
disabled?: boolean;
required?: boolean;
name?: string;
autocomplete?: string;
min?: number;
max?: number;
step?: number;
inputRef?: Ref<HTMLInputElement>;
onInput?: (e: Event) => void;
onChange?: (e: Event) => void;
onKeyDown?: (e: KeyboardEvent) => void;
onKeyUp?: (e: KeyboardEvent) => void;
}
export declare const Input: import("@mariozechner/mini-lit/dist/mini.js").Component<InputProps>;
//# sourceMappingURL=Input.d.ts.map