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.

`@mui/icons-material` in-editor preview

See original GitHub issue

Summary 💡

Having a preview of the icons in the editor is similar to having autocomplete available for the API. Our icons explorer is definitely helpful and better if you need inspiration. But if you know what kind of icon you want then in-editor preview should boost productivity.

Examples 🌈

  1. link to icons explorer in SvgIcon.d.ts jsdoc
  2. This shows a preview (vscode) when hovering over an imported icon
import SvgIcon from '@material-ui/core/SvgIcon';
/**
 * Preview: ![LockIcon](https://fonts.gstatic.com/s/i/materialicons/lock/v4/24px.svg)
 */
declare const LockIcon: typeof SvgIcon;
export default LockIcon;

credit to @leMaik for the markdown idea. icon-preview

  1. Show icon preview in autocomplete (probably requires IDE extension)

Motivation 🔦

Seemed like a useful thing to have to me.

Each of the examples can be explored further and implemented by whomever is looking for some work to do.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Feb 14, 2020

I have never seen an install timeout due to package size. Since these are compressed repetitive content such as this one should have minor impact.

@eps1lon We have had reports about install timeout for this very package in the past: #12432.

0reactions
oliviertassinaricommented, Nov 9, 2021

An update on this issue. If we work on it, we would probably need to take 3 constraints into account:

  1. Find an icon color that has high contrast for the IDE, skewing for dark mode (as I assume a lot more frequent than light mode)
  2. Use PNG instead of SVG, per https://github.com/microsoft/vscode/issues/133389 and #28659
  3. Be careful about the icons package bundle size: #12432
Read more comments on GitHub >

github_iconTop Results From Across the Web

Material Icons - Material UI - MUI
2100+ ready-to-use React Material Icons from the official website.
Read more >
`@mui/icons-material` in-editor preview · Issue #19697 - GitHub
Having a preview of the icons in the editor is similar to having autocomplete available for the API. Our icons explorer is definitely ......
Read more >
Material Design Preview Icon - Font Awesome Icons
Material Design Preview Icon refers to an opportunity to see something purchased or viewed before it is generally available. This Material Design Preview ......
Read more >
@mui/icons-material | Yarn - Package Manager
This package provides the Google Material Icons converted to SvgIcon components.
Read more >
@mui/icons-material - npm
These components use the Material UI's SvgIcon component to render the SVG path for each icon. If you are not already using Material...
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