# ghostkit/3.4.1/gutenberg/blocks/tabs-tab/deprecated.js

Block Animations, Motion &amp; Scroll Effects – Ghost Kit, version 3.4.1. 32 lines.

- Page: https://pluginprobe.com/plugins/ghostkit/3.4.1/code/gutenberg/blocks/tabs-tab/deprecated.js
- Raw: https://pluginprobe.com/plugins/ghostkit/3.4.1/raw/gutenberg/blocks/tabs-tab/deprecated.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.4.1/code/gutenberg/blocks/tabs-tab/deprecated.js#L10-L20`.

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

import metadata from './block.json';

const { name } = metadata;

export default [
	// v3.1.2
	{
		...metadata,
		save: function BlockSave(props) {
			const { slug } = props.attributes;

			let className = 'ghostkit-tab';

			className = applyFilters('ghostkit.blocks.className', className, {
				...{ name },
				...props,
			});

			const blockProps = useBlockProps.save({
				className,
				'data-tab': slug,
			});
			const innerBlockProps = useInnerBlocksProps.save(blockProps);

			return <div {...innerBlockProps} />;
		},
	},
];

```
