FocusEvent
A KuitoEvent of type focus or blur, as TextField passes to onFocus and onBlur.
Verwendung
React to a change outside the UI
Dieser Typ wird verwendet von TextField
import { TextField, signal, watch } from 'kuito';
export function Search(props: { search: (query: string) => void }) {
const query = signal('');
watch(query, (text) => {
const timer = setTimeout(() => props.search(text), 250);
return () => clearTimeout(timer);
});
return <TextField label="Search" value={query} />;
}Typdeklaration
export type FocusEvent = KuitoEvent<'focus' | 'blur'>;Mitglieder 3
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
type | "focus" | "blur" | Ja | — |
target | unknown | Ja | — |
isTrusted | boolean | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.