1 | # Block library
|
2 |
|
3 | Block library for the WordPress editor.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | Install the module
|
8 |
|
9 | ```bash
|
10 | npm install @wordpress/block-library --save
|
11 | ```
|
12 |
|
13 | _This package assumes that your code will run in an **ES2015+** environment. If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods. Learn more about it in [Babel docs](https://babeljs.io/docs/en/next/caveats)._
|
14 |
|
15 | ## API
|
16 |
|
17 |
|
18 |
|
19 | ### registerCoreBlocks
|
20 |
|
21 | [src/index.js#L70-L132](src/index.js#L70-L132)
|
22 |
|
23 | Function to register core blocks provided by the block editor.
|
24 |
|
25 | **Usage**
|
26 |
|
27 | ```js
|
28 | import { registerCoreBlocks } from '@wordpress/block-library';
|
29 |
|
30 | registerCoreBlocks();
|
31 | ```
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | <br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
|