Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add subscribe form variation
  • Loading branch information
CGastrell committed Sep 19, 2025
commit 4197e0f5304e896f9fb5f42d2cae3a39749264f7
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Forms: add Subscribe form variation
33 changes: 33 additions & 0 deletions projects/packages/forms/src/blocks/contact-form/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,39 @@ const variations = [
],
},
},
{
name: 'simple-subscribe-form',
title: __( 'Subscribe form', 'jetpack-forms' ),
description: __( 'A simple subscribe form.', 'jetpack-forms' ),
icon: {
foreground: getIconColor(),
src: people,
},
innerBlocks: [
[
'core/group',
{ layout: { type: 'flex', justifyContent: 'space-between' }, flexWrap: 'nowrap' },
[
[
'jetpack/field-email',
{ required: true, width: 75 },
[ [ 'jetpack/label', { label: __( 'Email', 'jetpack-forms' ) } ], [ 'jetpack/input' ] ],
],
[
'jetpack/button',
{
text: __( 'Subscribe', 'jetpack-forms' ),
element: 'button',
borderRadius: 0,
width: '',
lock: { move: false, remove: false },
},
],
],
],
],
attributes: {},
},
].filter( Boolean );

export default variations;
Loading