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.

Custom icon in the tree

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m making a MDX docs-only story that will act as the homepage of our Storybook instance, and it would be nice to give that item a homepage-worthy icon in the tree.

Describe the solution you’d like Perhaps in the <Meta> MDX element, add a prop that accepts an SVG path and a colour, that will be passed on to the tree.

Describe alternatives you’ve considered I don’t think a workaround is possible, because icons are hardcoded in ListItem.tsx. I’ve tried to add an emoji into the title of a story, but that doesn’t look quite right.

Are you able to assist bring the feature to reality? Maybe. Depends on the solution we’re heading for, should this feature request be approved.

Additional context Not just homepages, you know. It might be helpful to easily distinguish different component by different icons, or different colours of icons.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
stale[bot]commented, May 2, 2020

Hi everyone! Seems like there hasn’t been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don’t have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

1reaction
tooppaaacommented, Dec 16, 2020

Would this solves your request ? #13121

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tree with Custom Icons
Tree with Custom Icons, programming examples of Tree with Custom Icons. Try our JavaScript programming example below to customize icons in DataTree.
Read more >
Custom icon in tree view
Introduction. This is an example of modifying the icon of a custom viewprovider, which are normally added to scripted objects.
Read more >
Tree with custom icon : JTree Node « Swing « Java Tutorial
8. A JTree subclass that displays the tree of AWT or Swing component that make up a GUI. 14.67.9. Tree with custom icon....
Read more >
How to change Chevron Icon to custom icon in Tree view?
You can customize the TreeView expand and collapse icons by using the cssClass property of TreeView. Please refer to the code snippets. .custom....
Read more >
Custom icons in the Optimizely/Episerver CMS page tree
By default, all pages in your Optimizely page tree look the same. With custom icons, you can add your personal touch, and make...
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