@technote-space/gutenberg-utils

2.4.3 • Public • Published

Gutenberg Utils

npm version CI Status codecov CodeFactor License: GPL v2+ WordPress: >=5.4

This is a gutenberg's utils.

Table of Contents

Details

Usage

  1. Install

    yarn add @technote-space/gutenberg-utils
  2. Use
    e.g. assets/gutenberg.js

    import { Components, Helpers } from '@technote-space/gutenberg-utils';
    
    const { Icon, DropdownButton } = Components;
    const { getActiveStyle, addActiveAttributes, setActiveStyle, onChangeStyle } = Helpers;
    const { isValidCustomColors, isValidCustomFontSizes, getColors, getFontSizes } = Helpers;
  3. Compile and enqueue script

    <script type="text/javascript" src="/assets/gutenberg.js"></script>

dependencies

  • wp-block-editor
  • wp-components
  • wp-data
  • wp-element
  • wp-i18n
  • wp-rich-text
  • wp-url
  • lodash

Author

GitHub (Technote)
Blog

Readme

Keywords

Package Sidebar

Install

npm i @technote-space/gutenberg-utils

Weekly Downloads

3

Version

2.4.3

License

GPL-3.0

Unpacked Size

72.3 kB

Total Files

19

Last publish

Collaborators

  • technote