Usage

Read the boolean payload of a native control event.

tsx
// Read the boolean payload of a native control event.
import { signal, type ValueChangeEvent } from 'kuito';

export const enabled = signal(false);
export function receiveValue(event: ValueChangeEvent) {
  enabled.value = event.value;
}
// Toggle's onChange receives the boolean directly, not this event object.

Type declaration

ts
export interface ValueChangeEvent extends KuitoEvent<'change'>, ValuePayload {}

Members 4

NameTypeRequiredDescription
type"change"Yes—
targetunknownYes—
isTrustedbooleanYes—
valuebooleanYes—
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.