@wordpress/block-library
Version:
Block library for the WordPress editor.
35 lines (25 loc) • 846 B
JavaScript
/**
* WordPress dependencies
*/
import { Path, SVG } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { InnerBlocks } from '@wordpress/block-editor';
export const name = 'core/column';
export const settings = {
title: __( 'Column' ),
parent: [ 'core/columns' ],
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>,
description: __( 'A single column within a columns block.' ),
category: 'common',
supports: {
inserter: false,
reusable: false,
html: false,
},
edit() {
return <InnerBlocks templateLock={ false } />;
},
save() {
return <div><InnerBlocks.Content /></div>;
},
};