PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.2
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.2
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 / carousel-slide / save.js

save.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.2, at gutenberg/blocks/carousel-slide/save.js

26 lines 583 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 /**
9 * Block Save Class.
10 *
11 * @param props
12 */
13 export default function BlockSave(props) {
14 let className = 'ghostkit-carousel-slide';
15
16 className = applyFilters('ghostkit.blocks.className', className, {
17 name,
18 ...props,
19 });
20
21 const blockProps = useBlockProps.save({ className });
22 const innerBlockProps = useInnerBlocksProps.save(blockProps);
23
24 return <div {...innerBlockProps} />;
25 }
26