cositehq / sanity-plugin-simpler-color-input

A simpler color input for Sanity studio.
MIT License
25 stars 3 forks source link

Add search functionality #5

Closed theostrahlen closed 9 months ago

theostrahlen commented 9 months ago

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/4

To enable the search field, add the following option to the plugin initialization or to a specific field:

{
  enableSearch: true
}

Demo:

https://github.com/cositehq/sanity-plugin-simpler-color-input/assets/372430/98df9a3c-59f3-434d-a709-031668ce67e0