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.

add linkTo property on IconButton

See original GitHub issue

Issue Description

I was working on the addresses panel on MC and I needed an icon button with a link and the original implementation was an IconButton inside a Link and that added more code to a simple piece of functionality. Please refer to the code snippet added to get a better view of the issue.

Adding a linkTo property on the IconButton will make things concise and more readable.

Note: if needed I can do a PR for it.


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

emmenkocommented, Nov 6, 2019

Right, thanks for clarifying 👌

montezumecommented, Nov 6, 2019

Actually this way we could completely remove “react-router-dom” as a peer dep 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Put Routerlink in IconButton in ReactJS - Stack Overflow
I was able to inject a Link into IconButton as follows. ... import React from "react"; import { IconButton } from '@material-ui/core'; ...
Read more >
IconButton API - Material UI - MUI
API reference docs for the React IconButton component. Learn about the props, CSS, and other APIs of this exported module.
Read more >
IconButton class - material library - Flutter - Dart API docs
API docs for the IconButton class from the material library, for the Dart programming ... can be produced by configuring the IconButton widget's...
Read more >
Icon Button - Chakra UI
Theming properties#​​ The IconButton and Button components share the same theming configuration. To create theming just for the IconButton component, you can ...
Read more >
Icon Button - the Draftbit Docs!
To add an Icon, go to the Configs tab (second tab) in Properties Panel. Open the Icon picker next to the Icon config...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found