BU Block Imports

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

Please refer to the instructions in the repo for installation and setup.

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>;
}

Further Reading