Skip to main content
The Edit View contains the form and controls used to edit one collection document. You can replace the complete view through admin.components.edit.views.default, or customize individual slots under admin.components.edit.
See Document Views when replacing the editor or adding document routes and tabs. Every admin.components.edit slot is listed in Edit View Options.

beforeDocumentControls

beforeDocumentControls renders before the document action buttons.

editMenuItems

editMenuItems adds actions to the document controls menu. Client components can use FrogBot’s dropdown primitives.

SaveButton

SaveButton is used when drafts are disabled. Call submit() without an override to save the form.

SaveDraftButton

SaveDraftButton is available when drafts are enabled and autosave is disabled. Submit with the draft status.

PublishButton

PublishButton is available when drafts are enabled. Submit with the published status.

UnpublishButton

UnpublishButton returns a published document to draft status.

PreviewButton

PreviewButton can use the current document’s configured preview URL.

Description

Description replaces the collection description in the Edit and List Views. Type it with ViewDescriptionServerProps or ViewDescriptionClientProps from frogbot.

Status

Status replaces the draft or published status display when drafts are enabled.

Upload

Upload replaces the upload area for an upload-enabled collection. A custom implementation must integrate with FrogBot’s form and upload state; a standalone file input will not submit an upload correctly.