christopherafbjur / sanity-plugin-icon-picker

MIT License
30 stars 27 forks source link

Add custom provider/lib #3

Closed christopherafbjur closed 1 year ago

christopherafbjur commented 3 years ago

Could be beneficial for users to be able to inject custom icons via schema options.

Need to decide how we handle this.

Proposal A A custom property that takes an object of custom library/provider as well as a render callback method which will pass the current icon iteration of injected lib as a parameter and expects the method to return a proper icon component/element?

Proposal B Similar to A but the user has to format the custom icons to a controlled structure before passing them to the custom object.

fabien commented 3 years ago

Would love to add https://www.carbondesignsystem.com/guidelines/icons/library/ myself when this feature lands. I have no particular preference whether proposal A or B will be best.

PS would be nice to hide the tabs when only one library is configured.

brandonmlyon commented 2 years ago

I agree this would be great. I'd love to use Streamline icons with this plugin (but I understand they're a massive library with many licensed & not free options).

christopherafbjur commented 1 year ago

Currently working on this. Will be available in near future ☺️