@sparkpost/matchbox
Version:
A React UI component library
15 lines (14 loc) • 378 B
TypeScript
import { Breakpoints } from '../helpers/types';
/**
* Hook that returns token breakpoint status based on window width
*
* @example
* const breakpoint = useBreakpoint();
*
* Possible `breakpoint` values:
* ['xl', 'lg', 'md', 'sm', 'xs', 'default'];
*
* @see https://usehooks.com/useMedia/
*/
declare function useBreakpoint(): Breakpoints;
export default useBreakpoint;