#117 Add useScreenSize() Hook for Responsive Breakpoint Detection with Type Support#124
Closed
jawad-ali786 wants to merge 3 commits intoDavidHDev:mainfrom
Closed
#117 Add useScreenSize() Hook for Responsive Breakpoint Detection with Type Support#124jawad-ali786 wants to merge 3 commits intoDavidHDev:mainfrom
jawad-ali786 wants to merge 3 commits intoDavidHDev:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces the new useScreenSize() hook to enable responsive breakpoint detection in a type-safe way for TypeScript projects. The main changes include:
- Adding the useScreenSize() hook implementation in lib/hooks/useScreenSize.ts.
- Exporting useScreenSize() from lib/index.ts.
- Updating documentation and a demo to showcase the new hook.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| lib/index.ts | Export of the new useScreenSize() hook added |
| lib/hooks/useScreenSize.ts | Implementation of useScreenSize() with breakpoint detection |
| docs/docs/hooks/useScreenSize.mdx | Documentation and usage examples for the hook added |
| docs/demo/UseScreenSizeDemo.jsx | Demo component for showcasing useScreenSize() functionality |
| docs/README.md | README updated with an entry for the new useScreenSize() hook |
Comments suppressed due to low confidence (1)
docs/README.md:136
- The line contains several typos: 'breakponint' should be 'breakpoint' and 'euqals' should be 'equals'. Consider rephrasing for clarity.
- [`useScreenSize()`](https://reacthaiku.dev/docs/hooks/useScreenSize) - Provide the breakponit values in string method `toString` with other method `euqals` , `lessThan` , `greaterThan` value in `True/False`.
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
DavidHDev
reviewed
May 22, 2025
Owner
|
Is there anything different on this PR VS the one you opened 4 days ago? Please close one of them |
Contributor
Author
|
close one PR and remove extra lines from index.ts
…On Mon, Jun 9, 2025 at 10:59 PM David ***@***.***> wrote:
*DavidHDev* left a comment (DavidHDev/haiku#124)
<#124 (comment)>
Is there anything different on this PR VS the one you opened 4 days ago?
Please close one of them
—
Reply to this email directly, view it on GitHub
<#124 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANV5T6EBGAFBKQX2FI53PJT3CXDPDAVCNFSM6AAAAAB5ATES6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJWGUZDQNZWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
useScreenSize()that enables responsive breakpoint detection in a type-safe manner using TypeScript. It simplifies working with responsive UI by allowing developers to easily check the current screen size and compare it against standard Tailwind-style breakpoints.📐 Breakpoint Table
xssmmdlgxl2xl🧩 Hook API