@technote-space/gutenberg-utils
v2.4.3
Published
gutenberg utils
Downloads
112
Readme
Gutenberg Utils
This is a gutenberg's utils.
Table of Contents
Usage
Install
yarn add @technote-space/gutenberg-utils
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;
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