Help articles

Input component is missing a required prop (Studio v2)

This page documents the Studio v2 form-builder API. In current Sanity Studio you do not pass onFocus and onBlur into an input — the Studio supplies them, and you spread props.elementProps onto your element, delegating with renderDefault. See Custom components for Sanity Studio.

All input components should be passed a onFocus and onBlur prop.

Read more about Custom input widgets

Was this page helpful?