Skip to content

@bynary.composables.observer.Function.useMediaQuery

github-actions[bot] edited this page Jul 11, 2024 · 3 revisions

@bynary/composables / @bynary/composables/observer / useMediaQuery

Function: useMediaQuery()

useMediaQuery(query): Signal<boolean>

Parameters

query: string

The media query to match

Returns

Signal<boolean>

A signal holding whether the given media query matches

Defined in

observer/src/media-query.composable.ts:18

Clone this wiki locally