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 ( *
Extra small
} * {bp.xs &&Small
} * {bp.sm &&Medium
} * {bp.md &&Large
} * {bp.lg &&Extra large
} *