Form API
The form API lets you customize the rendering of form components and specify options for asset sources in your studio.
components
object
Accepts custom component overrides for the following form components:
input,field,preview,item,annotation,block, andinlineBlock(plusportableText.pluginsfor Portable Text editor plugins). The components can be declared in the root studio configuration, in plugins, or directly in a schema definition.file
object
Accepts an object with the following properties:
assetSourcesanddirectUploads.assetSourcesaccepts an array of valid asset source configuration objects, or a callback function resolving to the same. The callback function is called with the current list of registered asset sources as its first argument and a context object as the second.directUploadsaccepts a booleantrueorfalse.image
object
Accepts an object with the following properties:
assetSourcesanddirectUploads.assetSourcesaccepts an array of valid asset source configuration objects, or a callback function resolving to the same. The callback function is called with the current list of registered asset sources as its first argument and a context object as the second.directUploadsaccepts a booleantrueorfalse.
The following are the most commonly used properties. For a full list of available properties, see the type reference documentation.