UNPKG

piral-core

Version:

The core library for creating a Piral instance.

8 lines (7 loc) 340 B
/** * Hook to detect layout changes (e.g., which UI breakpoint was hit). * @param queries The available queries matching the breakpoints. * @param values The values mapping to the breakpoints * @param defaultValue The default value. */ export declare function useMedia<T>(queries: Array<string>, values: Array<T>, defaultValue: T): T;