brigand / brigand/react-with-viewport
Dynamic media queries based on props
Open
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```js
withViewport({
breakpoints: (props) => ({
mobile: { width: props.small ? 480 : 600 },
tablet: { width: 720 },
desktop: { width: 1200 },
large: { width: 1620 },
})
})
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the withViewport API and how its breakpoints option is currently handled. Use the issue's props-based example as the acceptance case; the work is done when breakpoint values can depend on props as shown and existing viewport behavior remains covered by the project's tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100