UNPKG

@wordpress/block-library

Version:
16 lines (11 loc) 386 B
/** * WordPress dependencies */ import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor'; export default function save( { attributes } ) { const { anchor } = attributes; const tabsId = anchor; const blockProps = useBlockProps.save(); const innerBlocksProps = useInnerBlocksProps.save( blockProps ); return <div { ...innerBlocksProps } id={ tabsId } />; }