Form Submit Button

This block is experimental and may change or be removed without notice.

A submission button for forms.

  • Name: core/form-submit-button
  • Category: widgets
  • API Version: 3
  • Block Type: Static (saved in post content)
  • Keywords: submit, button, form

Block Relationships

Ancestor blocks:
core/form

Allowed inner blocks:
core/buttons
core/button

Attributes

Defined via the attributes property in block.json.

This block has no custom attributes.

Supports

Defined via the supports property in block.json.

This block does not declare explicit supports.

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:form-submit-button -->
<div class="wp-block-form-submit-button"><!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"tagName":"button","type":"submit"} -->
<div class="wp-block-button"><button type="submit" class="wp-block-button__link wp-element-button">Submit</button></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:form-submit-button -->

Source