UNPKG

846 BJavaScriptView Raw
1/**
2 * WordPress dependencies
3 */
4import { Path, SVG } from '@wordpress/components';
5import { __ } from '@wordpress/i18n';
6import { InnerBlocks } from '@wordpress/block-editor';
7
8export const name = 'core/column';
9
10export const settings = {
11 title: __( 'Column' ),
12
13 parent: [ 'core/columns' ],
14
15 icon: <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><Path fill="none" d="M0 0h24v24H0V0z" /><Path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" /></SVG>,
16
17 description: __( 'A single column within a columns block.' ),
18
19 category: 'common',
20
21 supports: {
22 inserter: false,
23 reusable: false,
24 html: false,
25 },
26
27 edit() {
28 return <InnerBlocks templateLock={ false } />;
29 },
30
31 save() {
32 return <div><InnerBlocks.Content /></div>;
33 },
34};