custom icon for each option
See original GitHub issueHello I trying to make custom icon for any of option. http://prntscr.com/n0h6nk
maybe is there possibility to add third key in options array? Or any other possibility?
const statusOptions = [
{ value: 'notStarted', label: 'Nierozpoczęte', icon: 'someIcon' },
{ value: 'started', label: 'Rozpoczęte', icon: 'someIcon' }
];
I need same effect as in home libraby homepage, but my icons will be svg, or jpeg, or png https://react-select.com/home
pic for view => http://prntscr.com/n0u2p2
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
Display custom icons alongside values in list views
This example displays custom icons in a view for the opportunity table, which is available with certain apps, such as Dynamics 365 Sales....
Read more >How to Customize Any Icon in Windows 10 (or 11) - MakeUseOf
Then right-click each shortcut file, select Properties, and use the Change Icon button to select your new blank icon.
Read more >Markers With Custom Icons - Leaflet - a JavaScript library for ...
Marker icons in Leaflet are defined by L.Icon objects, which are passed as an option when creating markers. Let's create a green leaf...
Read more >How to add an icon to the options in react-select?
I found a workaround how to solve it. My technique is similar to @canda: import React, { Component } from "react"; import {...
Read more >Icons with UI Widgets - Webix
Icons can be nested into all components and their items. ... You can also use any custom font icon pack in your Webix-based...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you want to show custom icons both in options and selected value area you can use something like this.
Hello, Yes, i made it:
You need to make custom component. I found solution in docs. My solution below:
svg icons upload as React Components: import { ReactComponent as IconProgress } from “/icon_in_progress.svg”;