@wordpress/block-library
Version:
Block library for the WordPress editor.
36 lines (30 loc) • 663 B
JavaScript
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { html as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
import edit from './edit';
import metadata from './block.json';
import save from './save';
import transforms from './transforms';
const { name } = metadata;
export { metadata, name };
export const settings = {
icon,
example: {
attributes: {
content:
'<marquee>' +
__( 'Welcome to the wonderful world of blocks…' ) +
'</marquee>',
},
},
edit,
save,
transforms,
};
export const init = () => initBlock( { name, metadata, settings } );