@wordpress/block-library
Version:
Block library for the WordPress editor.
30 lines (25 loc) • 546 B
JavaScript
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { postAuthor as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
import metadata from './block.json';
import edit from './edit';
const { name } = metadata;
export { metadata, name };
export const settings = {
icon,
example: {
viewportWidth: 350,
attributes: {
showBio: true,
byline: __( 'Posted by' ),
},
},
edit,
};
export const init = () => initBlock( { name, metadata, settings } );