Warning
You're browsing the documentation for an old version of Webiny. Consider upgrading your project to Webiny 5.35.x.
Plugin References
Headless CMS plugin references.
Plugins
cms-content-form-renderer
/**
* Define a custom form layout renderer for a specific content model.
*/
export interface CmsContentFormRendererPlugin extends Plugin {
/**
* A plugin type.
*/
type: "cms-content-form-renderer";
/**
* Content model ID that will use this renderer.
*/
modelId: string;
/**
* A function that will render a custom form layout.
*/
render(props: {
/**
* Content model that is being rendered.
*/
contentModel: CmsEditorContentModel;
/**
* Content entry data handled by the Form element.
*/
data: Record<string, any>;
/**
* A component to bind data to the Form.
*/
Bind: BindComponent;
/**
* Content model fields to render.
*/
fields: Record<string, React.ReactElement>;
}): React.ReactNode;
}