import { BreakPoint } from '..'; /** * @description This hook can be used to programmatically change the layout/content or functionality based on the current breakpoint. * This will return an object with all breakpoint key names and their active state. * * NOTE: If you're running hakit within an iframe, you'll need to update the window context in the HassConnect.options.windowContext property * * @example * ```tsx * import { useBreakpoint } from "@hakit/components"; * function SomeComponent() { * const bp = useBreakpoint(); * return ( *
* {bp.xxs &&

Extra small

} * {bp.xs &&

Small

} * {bp.sm &&

Medium

} * {bp.md &&

Large

} * {bp.lg &&

Extra large

} *
* ); * } * * @returns { [key in BreakPoint]: boolean } - Object containing the breakpoint keys and if they're active or not. */ export declare function useBreakpoint(): { [key in BreakPoint]: boolean; }; //# sourceMappingURL=useBreakpoint.d.ts.map