jaredLunde / jaredLunde/masonic
Lock an item to a specific position
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
I'm interested in having a specific item always appear in a locked position within the masonry layout (e.g.: top-right column/cell).
**Describe the solution you'd like**
The item should be able to appear in a location position, no matter if I add or remove items & re-render the Masonry component.
**Describe alternatives you've considered**
I have not considered alternatives, though I'm going to see if this can be done with the `usePositioner` hook in its current form.
**Additional context**
N/A
Contributor guide
Research direction
Start by reading the usePositioner hook and the Masonry component to understand how item positions are assigned and preserved during re-rendering. Clarify the API and behavior for locking an item to a specified position, including how additions and removals should affect it; done means the item remains in that position across updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100