rosnovsky / sanity-plugin-autocomplete-tags

Creatable autocomplete tag dropdown input fields for Sanity Studio 🤓
MIT License
24 stars 7 forks source link

Required prop [FEATURE] #42

Open Ojay opened 2 years ago

Ojay commented 2 years ago

Is your feature request related to a problem? Please describe. Loving the field however it doesn't seem to have validation/required props, like other schema fields.

Describe the solution you'd like

   {
      title: 'Page type',
      name: 'pageType',
      type: 'tags',
      // Validation prop
      validation: Rule => Rule.required(),**
      options: {
        ...
      },
    },