UNPKG

@wordpress/block-library

Version:
27 lines (22 loc) 551 B
/** * 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 = { transforms, getEditWrapperProps( attributes ) { const { width } = attributes; if ( 'wide' === width || 'full' === width ) { return { 'data-align': width }; } }, edit, save, }; export const init = () => initBlock( { name, metadata, settings } );