PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / form / index.js

index.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/blocks/form/index.js

49 lines 968 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 import getIcon from '../../utils/get-icon';
4 import metadata from './block.json';
5 import edit from './edit';
6 import save from './save';
7
8 const { name } = metadata;
9
10 export { metadata, name };
11
12 export const settings = {
13 icon: getIcon('block-form', true),
14 ghostkit: {
15 previewUrl: 'https://www.ghostkit.io/docs/blocks/form/',
16 },
17 example: {
18 innerBlocks: [
19 {
20 name: 'ghostkit/form-field-email',
21 attributes: {
22 required: true,
23 },
24 },
25 {
26 name: 'ghostkit/form-field-text',
27 attributes: {
28 required: true,
29 nameFields: 'first-last',
30 description: __('First', 'ghostkit'),
31 descriptionLast: __('Last', 'ghostkit'),
32 },
33 },
34 {
35 name: 'ghostkit/form-field-textarea',
36 attributes: {
37 label: __('Message', 'ghostkit'),
38 placeholder: __('Write your message here…', 'ghostkit'),
39 },
40 },
41 {
42 name: 'ghostkit/form-submit-button',
43 },
44 ],
45 },
46 edit,
47 save,
48 };
49