UNPKG

@bianic-ui/media-query

Version:

A React hook for changing properties or visibility of a component based on css media query

9 lines (8 loc) 292 B
/** * React hook for getting the value for the current breakpoint from the * provided responsive values object. * * @example * const width = useBreakpointValue({ base: '150px', md: '250px' }) */ export declare function useBreakpointValue<T = any>(values: Record<string, T> | T[]): any;