+ >
+ );
+}
diff --git a/plugins/carhop-blocks/src/tab/editor.scss b/plugins/carhop-blocks/src/tab/editor.scss
new file mode 100644
index 0000000..42e1d80
--- /dev/null
+++ b/plugins/carhop-blocks/src/tab/editor.scss
@@ -0,0 +1,9 @@
+/**
+ * The following styles get applied inside the editor only.
+ *
+ * Replace them with your own styles or remove the file completely.
+ */
+
+.wp-block-create-block-chapo {
+ border: 1px dotted #f00;
+}
diff --git a/plugins/carhop-blocks/src/tab/index.js b/plugins/carhop-blocks/src/tab/index.js
new file mode 100644
index 0000000..e0eebbd
--- /dev/null
+++ b/plugins/carhop-blocks/src/tab/index.js
@@ -0,0 +1,26 @@
+import { registerBlockType } from "@wordpress/blocks";
+import "./style.scss";
+
+import Edit from "./edit";
+import save from "./save";
+import metadata from "./block.json";
+
+registerBlockType(metadata.name, {
+ icon: {
+ src: (
+
+ ),
+ },
+ edit: Edit,
+ save,
+});
diff --git a/plugins/carhop-blocks/src/tab/save.js b/plugins/carhop-blocks/src/tab/save.js
new file mode 100644
index 0000000..ad3e61e
--- /dev/null
+++ b/plugins/carhop-blocks/src/tab/save.js
@@ -0,0 +1,17 @@
+import { useBlockProps } from "@wordpress/block-editor";
+import { InnerBlocks } from "@wordpress/block-editor";
+import { RichText } from "@wordpress/block-editor";
+
+export default function save({ attributes }) {
+ const { title } = attributes;
+ const blockProps = useBlockProps.save({
+ className: "tab",
+ });
+
+ return (
+ <>
+
+
+ >
+ );
+}
diff --git a/plugins/carhop-blocks/src/tab/style.scss b/plugins/carhop-blocks/src/tab/style.scss
new file mode 100644
index 0000000..39c7cda
--- /dev/null
+++ b/plugins/carhop-blocks/src/tab/style.scss
@@ -0,0 +1,12 @@
+/**
+ * The following styles get applied both on the front of your site
+ * and in the editor.
+ *
+ * Replace them with your own styles or remove the file completely.
+ */
+
+.wp-block-create-block-chapo {
+ background-color: #21759b;
+ color: #fff;
+ padding: 2px;
+}
diff --git a/plugins/carhop-blocks/src/tab/view.js b/plugins/carhop-blocks/src/tab/view.js
new file mode 100644
index 0000000..0146b12
--- /dev/null
+++ b/plugins/carhop-blocks/src/tab/view.js
@@ -0,0 +1,25 @@
+/**
+ * Use this file for JavaScript code that you want to run in the front-end
+ * on posts/pages that contain this block.
+ *
+ * When this file is defined as the value of the `viewScript` property
+ * in `block.json` it will be enqueued on the front end of the site.
+ *
+ * Example:
+ *
+ * ```js
+ * {
+ * "viewScript": "file:./view.js"
+ * }
+ * ```
+ *
+ * If you're not making any changes to this file because your project doesn't need any
+ * JavaScript running in the front-end, then you should delete this file and remove
+ * the `viewScript` property from `block.json`.
+ *
+ * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script
+ */
+
+/* eslint-disable no-console */
+console.log( 'Hello World! (from create-block-chapo block)' );
+/* eslint-enable no-console */