igmoweb
5/4/2020 - 11:41 AM

Gutenberg Block Style

const { registerBlockStyle } = wp.blocks;

const block = 'core/button';

registerBlockStyle(
	block,
	{
		name: 'primary',
		label: 'Primary',
		isDefault: true,
	}
);

// Need to add .wp-block-button.is-style-primary