This PR introduces an optional search field to the color picker, enhancing usability by allowing users to quickly find colors through text input. The feature is designed to be non-intrusive and is disabled by default. This is really helpful when you have a long list of color options.
This PR introduces an optional search field to the color picker, enhancing usability by allowing users to quickly find colors through text input. The feature is designed to be non-intrusive and is disabled by default. This is really helpful when you have a long list of color options.
This PR also fixes import of
@uiw/react-color
. Fixing https://github.com/cositehq/sanity-plugin-simpler-color-input/issues/4To enable the search field, add the following option to the plugin initialization or to a specific field:
Demo:
https://github.com/cositehq/sanity-plugin-simpler-color-input/assets/372430/98df9a3c-59f3-434d-a709-031668ce67e0