lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
19 lines (18 loc) • 695 B
TypeScript
import { Signal } from "@preact/signals";
import { ComponentChild } from "preact";
import { CSSProperties } from "preact/compat";
type Props = {
style?: CSSProperties;
className?: string;
placeholder?: string;
textSignal?: Signal<string>;
autoFocus?: boolean;
onEnter?: (value: string) => void;
onEscape?: (value: string) => void;
onArrowDown?: () => void;
onArrowUp?: () => void;
children?: ComponentChild;
inputPadding?: number;
};
declare const TextInput: ({ style, className, placeholder, textSignal, autoFocus, onEnter, onEscape, onArrowDown, onArrowUp, children, inputPadding }: Props) => import("preact").JSX.Element;
export default TextInput;