BU Block Imports

In development.

This is a standardized set of components, hooks, and utilities developed by ID.

To import these into your codebase, use the @bostonuniversity/block-imports. Detailed instructions and usage can be found in the npm directory. Some have been copied here for quick reference.

This package is managed through NPM (https://www.npmjs.com/). It can be found here: https://www.npmjs.com/package/@bostonuniversity/block-imports.

Installation

Install the module:

npm i @bostonuniversity/block-imports -D

Usage

Within Gutenberg, these components can be accessed by importing from the components root directory:

/**
 * WordPress dependencies
 */
import { Button } from '@bostonuniversity/block-imports';

export default function MyBu() {
	return <Button>Click Me!</Button>;
}

@todo… flesh this out once there is code in the repo…

@todo demo of this…

Further Reading