> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Input component is missing a required method (Studio v2)

This page documents the Studio v2 form-builder API. Current custom inputs do not implement a `.focus()` method; they spread `props.elementProps` onto the rendered element instead. See [Custom components for Sanity Studio](https://www.sanity.io/docs/studio/intro-to-custom-studio-components).

All input components should implement a .focus() method.

Read more about [Custom input widgets](https://www.sanity.io/docs/studio/from-input-components-to-real-time-safe-patches)

