@pbroom/color-kit/driverColor state

ColorUpdateEvent

Change notification a single-color picker emits with its next state.

interfaceimport type { ColorUpdateEvent } from '@pbroom/color-kit/driver';color-state.ts:78
interface ColorUpdateEvent {
  next: ColorState;
  changedChannel?: ColorChannel;
  interaction: ColorInteraction;
}

Properties

nextColorState
State after the update.
changedChannel?ColorChannel
OKLCH channel the update edited, when it edited exactly one (see getColorInputChangedChannel).
interactionColorInteraction
Input mechanism that caused the update.

Also exported from