@tempots/ui
WindowSize() function
Creates a renderable function that monitors the window size and invokes the provided function with the current size.
Signature:
WindowSize: (fn: (size: Signal<Size>) => TNode) => (ctx: DOMContext) => (removeTree: boolean) => void
Parameters
Parameter |
Type |
Description |
---|---|---|
fn |
(size: Signal |
The function to be invoked with the current window size. |
Returns: (ctx: DOMContext) => (removeTree: boolean) => void
A renderable function that monitors the window size.