Skip to content

KitCommon

KitCommon = object

Defined in: kit/types.ts:10

Options every kit primitive accepts besides its own props: timing and fades (as for any overlay), stacking, and a theme override for this one overlay (project-wide overrides go into a shared factory).

optional duration?: number

Defined in: kit/types.ts:12

Length in ms for a blocking call; .for(...) or start()/end() otherwise.


optional fadeIn?: number

Defined in: kit/types.ts:14

Fade lengths in ms. Default 180 each.


optional fadeOut?: number

Defined in: kit/types.ts:15


optional overMouse?: boolean

Defined in: kit/types.ts:19

Draw above the mouse cursor.


optional pinToScreen?: boolean

Defined in: kit/types.ts:17

Keep the overlay fixed in screen space during zoom.


optional theme?: Partial<KitTheme>

Defined in: kit/types.ts:21

Override extracted theme tokens for this overlay.