UNPKG

@wordpress/block-library

Version:
56 lines (50 loc) 1.16 kB
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { navigation as icon } from '@wordpress/icons'; /** * Internal dependencies */ import initBlock from '../utils/init-block'; import metadata from './block.json'; import edit from './edit'; import save from './save'; import deprecated from './deprecated'; const { name } = metadata; export { metadata, name }; export const settings = { icon, example: { innerBlocks: [ { name: 'core/navigation-link', attributes: { // translators: 'Home' as in a website's home page. label: __( 'Home' ), url: 'https://make.wordpress.org/', }, }, { name: 'core/navigation-link', attributes: { // translators: 'About' as in a website's about page. label: __( 'About' ), url: 'https://make.wordpress.org/', }, }, { name: 'core/navigation-link', attributes: { // translators: 'Contact' as in a website's contact page. label: __( 'Contact' ), url: 'https://make.wordpress.org/', }, }, ], }, edit, save, deprecated, }; export const init = () => initBlock( { name, metadata, settings } );