@wordpress/block-library
Version:
Block library for the WordPress editor.
12 lines (9 loc) • 309 B
JavaScript
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 } />;
}