UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

14 lines (13 loc) 447 B
import { breakpoints } from "../tokens"; export type CobaltBreakpointType = keyof typeof breakpoints | "over"; export declare const cobaltBreakpoints: [CobaltBreakpointType, string][]; /** * Hook to get the current Cobalt breakpoint according to the viewport size */ declare const useBreakpoint: () => { breakpoint: CobaltBreakpointType; isMobile: boolean; isTablet: boolean; isDesktop: boolean; }; export default useBreakpoint;