Skip to main content

useAppearanceListener

Functions

default()

default(): Appearance

Defined in: canvas/hooks/useAppearanceListener.ts:13

Handle the theme appearance of the canvas.

This hook works by listening to the "switch-theme-appearance" event and updating the appearance state accordingly. The appearance is initialized to "dark".

Returns

Appearance

The current theme appearance.