mikacaldera/gutenberg-category

Custom category type for custom gutenberg blocks

3.0 2021-07-21 19:27 UTC

This package is auto-updated.

Last update: 2024-05-22 01:41:07 UTC


README

Package that will create a special categeory in your gutenberg blocks list named 'Custom'. Created for custom WordPress websites using sage and roots.io.

🔌 Install

Add following snippet to your site:

  {
  "type": "vcs",
  "url": "git@github.com:MikaCaldera/gutenberg-category.git"
  }

In your site folder run the following command.

  composer require "mikacaldera/gutenberg-category"

📐 Use

When you create a new custom gutenberg block use the category custom to have it listed under custom Gutenberg blocks.

  // Basic Specs
  title: __( 'Container', 'create-block' ),
  description: __(
    'Adds options for a container and background color.',
    'create-block'
  ),
  keywords: [__('container'), __('full'), __('block')],
  category: 'custom',
  icon: 'editor-contract',