-
-
Save aduth/e33bd00dc7a4c9bf022e989babd8ece6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/edit-post/src/editor.js b/packages/edit-post/src/editor.js | |
index eb6754e7cf..3d5685bbd6 100644 | |
--- a/packages/edit-post/src/editor.js | |
+++ b/packages/edit-post/src/editor.js | |
@@ -20,6 +20,7 @@ import { compose } from '@wordpress/compose'; | |
/** | |
* Internal dependencies | |
*/ | |
+import ExampleForm from './example-form'; | |
import preventEventDiscovery from './prevent-event-discovery'; | |
import Layout from './components/layout'; | |
import EditorInitialization from './components/editor-initialization'; | |
@@ -114,6 +115,7 @@ class Editor extends Component { | |
return ( | |
<StrictMode> | |
<EditPostSettings.Provider value={ settings }> | |
+ <ExampleForm /> | |
<SlotFillProvider> | |
<DropZoneProvider> | |
<EditorProvider | |
diff --git a/packages/edit-post/src/example-form.js b/packages/edit-post/src/example-form.js | |
new file mode 100644 | |
index 0000000000..95cb97108e | |
--- /dev/null | |
+++ b/packages/edit-post/src/example-form.js | |
@@ -0,0 +1,21 @@ | |
+/** | |
+ * WordPress dependencies | |
+ */ | |
+import { Modal, TextControl, SelectControl } from '@wordpress/components'; | |
+import { __experimentalLinkControl as LinkControl } from '@wordpress/block-editor'; | |
+ | |
+function ExampleForm() { | |
+ return ( | |
+ <Modal title="Example Form"> | |
+ <TextControl label="First name" /> | |
+ <TextControl label="Last name" /> | |
+ <LinkControl label="Website" /> | |
+ <SelectControl | |
+ label="Country" | |
+ options={ [ { label: 'United States', value: 'us' } ] } | |
+ /> | |
+ </Modal> | |
+ ); | |
+} | |
+ | |
+export default ExampleForm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment