FocusEvent
A KuitoEvent of type focus or blur, as TextField passes to onFocus and onBlur.
Usage
React to a change outside the UI
This type is used by 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} />;
}Type declaration
export type FocusEvent = KuitoEvent<'focus' | 'blur'>;Members 3
| Name | Type | Required | Description |
|---|---|---|---|
type | "focus" | "blur" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.