PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.4.1
Block Animations, Motion & Scroll Effects – Ghost Kit v3.4.1
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / tabs-tab / deprecated.js

deprecated.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.4.1, at gutenberg/blocks/tabs-tab/deprecated.js

32 lines 665 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
2 import { applyFilters } from '@wordpress/hooks';
3
4 import metadata from './block.json';
5
6 const { name } = metadata;
7
8 export default [
9 // v3.1.2
10 {
11 ...metadata,
12 save: function BlockSave(props) {
13 const { slug } = props.attributes;
14
15 let className = 'ghostkit-tab';
16
17 className = applyFilters('ghostkit.blocks.className', className, {
18 ...{ name },
19 ...props,
20 });
21
22 const blockProps = useBlockProps.save({
23 className,
24 'data-tab': slug,
25 });
26 const innerBlockProps = useInnerBlocksProps.save(blockProps);
27
28 return <div {...innerBlockProps} />;
29 },
30 },
31 ];
32