question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BreakpointIndicator] Add new component

See original GitHub issue

see: https://github.com/dimitropoulos/mui-breakpoint-indicator try it out: https://www.npmjs.com/package/mui-breakpoint-indicator

I have been using this component for a while like:

<MyApp>
  {debugMode && <BreakpointIndicator />
</MyApp>

And I bet I’m not alone in finding value in such a tool.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

When the user changes the viewport such that they enter a new mui breakpoint, the helper updates.

Examples 🌈

https://github.com/dimitropoulos/mui-breakpoint-indicator

Motivation 🔦

It is sometimes difficult to keep mental note, when making a responsive site with mui, what breakpoint the viewport is currently in. This greatly simplifies the development process.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
oliviertassinaricommented, Mar 20, 2020

What if we were using the exact same approach than Chrome that displays the current viewport when resizing? This approach solves the visibility issue, as only visible when resizing, to later fade away.

Regarding the discoverability issue, I think that we could document it in the breakpoint parts of the documentation, as well a include it in the examples.

Exciting 😃. I’m all in with such an approach.

Mar-20-2020 13-10-51

@dimitropoulos What do you think?

1reaction
dimitropouloscommented, Mar 2, 2020

(I’m working on writing up an issue for ErrorBoundaries 😄! I would be happy to contribute this component and I think I have some feedback that could be useful (TLDR; I think it definitely has a use, and I have some rationale to share as to why a library like material-ui has any business including such a component). I should be done writing up the issue in the next few hours.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

dimitropoulos/mui-breakpoint-indicator - GitHub
GitHub - dimitropoulos/mui-breakpoint-indicator: shows you your current material-ui breakpoint. tiny. allows default position setting.
Read more >
Breakpoint Container - Container Types - Inductive University
A Breakpoint container allows you to configure two different sets of components. The container will switch between the two configurations based ...
Read more >
Adding a conditional breakpoint - Cloud - 8.0
Click the [+] button to add as many filtering conditions as you want in the Conditions table. These conditions will be performed one...
Read more >
Breakpoints | Webflow University
To add a breakpoint, click the breakpoint dropdown (to the left of the desktop icon in the top toolbar) and choose from the...
Read more >
Use Breakpoints Unit | Salesforce Trailhead
Breakpoints · Right-click the line number for this.counter += operand (below the breakpoint you added), and select Add conditional breakpoint. · Move your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found