# ghostkit/3.3.3/gutenberg/blocks/button/transforms.js

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

- Page: https://pluginprobe.com/plugins/ghostkit/3.3.3/code/gutenberg/blocks/button/transforms.js
- Raw: https://pluginprobe.com/plugins/ghostkit/3.3.3/raw/gutenberg/blocks/button/transforms.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/button/transforms.js#L10-L20`.

```javascript
import { createBlock } from '@wordpress/blocks';

export default {
	from: [
		{
			type: 'block',
			blocks: ['core/button'],
			transform(attrs) {
				return createBlock(
					'ghostkit/button',
					{
						align: attrs.align,
						count: 1,
					},
					[
						createBlock('ghostkit/button-single', {
							url: attrs.url,
							text: attrs.text,
						}),
					]
				);
			},
		},
	],
};

```
