# ghostkit/3.3.3/gutenberg/blocks/grid-column/save.js

Block Animations, Motion &amp; Scroll Effects – Ghost Kit, version 3.3.3. 47 lines.

- Page: https://pluginprobe.com/plugins/ghostkit/3.3.3/code/gutenberg/blocks/grid-column/save.js
- Raw: https://pluginprobe.com/plugins/ghostkit/3.3.3/raw/gutenberg/blocks/grid-column/save.js
- Modified: 2024-02-18T18:40:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ghostkit/3.3.3/code/gutenberg/blocks/grid-column/save.js#L10-L20`.

```javascript
import classnames from 'classnames/dedupe';

import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
import { applyFilters } from '@wordpress/hooks';

import metadata from './block.json';
import getColClass from './get-col-class';

const { name } = metadata;

/**
 * Block Save Class.
 *
 * @param props
 */
export default function BlockSave(props) {
	let className = getColClass(props);

	// background
	const background = applyFilters(
		'ghostkit.blocks.grid-column.background',
		'',
		{
			name,
			...props,
		}
	);

	if (background) {
		className = classnames(className, 'ghostkit-col-with-bg');
	}

	const blockProps = useBlockProps.save({
		className,
	});
	const innerBlocksProps = useInnerBlocksProps.save({
		className: 'ghostkit-col-content',
	});

	return (
		<div {...blockProps}>
			{background}
			<div {...innerBlocksProps} />
		</div>
	);
}

```
