-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feature: Optional responsive svg grid background #2175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
81cdd9a to
144a2f6
Compare
Collaborator
|
I'm working this in to #2183 as I see the value but I also don't think it should live in the main library (ie it should fit the API of the library and be tree-shakable). Thanks for submitting it. |
STRML
added a commit
that referenced
this pull request
Dec 9, 2025
… utility Add new extras entry point with optional tree-shakeable components: - GridBackground: SVG grid background that aligns with GridLayout cells - calcGridCellDimensions: Core utility for grid cell calculations Based on PR #2175 by @nicosayer. Also improves ESLint configuration: - Add typescript-eslint for TypeScript file linting - Add eslint-plugin-react-hooks - Rename eslint.config.js to eslint.config.mjs for explicit ESM - Ignore built example files - Disable React Compiler rules (not using React Compiler yet) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Author
|
@STRML Thanks for the response. I saw the your changes are merged. Just want to point out, in the README you mentioned the background is based on this PR by the wrong person.
|
STRML
added a commit
that referenced
this pull request
Dec 9, 2025
Change credit from @nicosayer to @dmj900501 who is the actual author of the GridBackground feature PR.
Collaborator
|
Thanks, fixed it. |
STRML
added a commit
that referenced
this pull request
Dec 10, 2025
* feat(extras): add wrap compactor for paragraph-style layouts Implements wrap mode compaction where items flow left-to-right and wrap to the next row, similar to words in a paragraph. When dragging: - Moving an item earlier shifts other items right/down - Moving an item later shifts other items left/up This is a v2 reimplementation of the algorithm from PR #1773 by @JohnThomson, adapted to the new composable Compactor interface. Usage: ```tsx import { wrapCompactor } from 'react-grid-layout/extras'; <GridLayout compactor={wrapCompactor} ... /> ``` * fix(readme): correct attribution for PR #2175 Change credit from @nicosayer to @dmj900501 who is the actual author of the GridBackground feature PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
core
use this label for changes in `lib` directory
documentation
use this label for changes in documentation
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
This PR add an optional responsive svg grid background (demo below). User can add an optional "background" prop to show a grid background with defined color.
The background also works with different combination of container padding / margin / gap
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Screen.Recording.2025-11-19.at.10.47.52.mov
with different [color/margin/padding]
Screen.Recording.2025-11-19.at.14.49.11.mov
Added tests?
Added to documentation?