@wordpress/block-library
Version:
Block library for the WordPress editor.
15 lines (12 loc) • 343 B
JavaScript
/**
* WordPress dependencies
*/
import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
export default function save() {
const blockProps = useBlockProps.save( {
role: 'tabpanel',
tabIndex: 0,
} );
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
return <section { ...innerBlocksProps } />;
}