Skip to content

10up/block-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

083d09d · Jun 7, 2024
May 3, 2024
May 24, 2023
May 27, 2024
May 3, 2024
May 27, 2024
Jun 7, 2024
Jan 18, 2024
May 3, 2024
Feb 17, 2022
Jan 29, 2024
Feb 25, 2022
Aug 12, 2021
May 3, 2024
Dec 17, 2021
Aug 28, 2023
Jun 30, 2023
Aug 23, 2023
May 6, 2024
May 15, 2024
May 13, 2024
Sep 26, 2023
May 31, 2023

Repository files navigation

10up Block Components

A collection of components built to be used in the block editor.

Support Level 10up Block Components

Overview

A collection of components built to be used in the block editor. These components do not include any build files and do not bundle the WordPress components. Therefore these need to be used in an environment where the Dependency Extraction Webpack Plugin is used and the import { component } from '@wordpress/package'; is supported. If your project is using 10up-toolkit, this is handled automatically.

Installation

  1. Run npm install --save @10up/block-components within your WordPress theme or plugin.
  2. Within your block editor code, import the relevant component(s) e.g. import { ContentPicker } from '@10up/block-components';
  3. We highly recommend you use 10up-toolkit to build your block files as it handles dependency extraction for you.

APIs

Components

Post related Components

These components read/write information from the global post object or a PostContext.

Hooks

Post related hooks

These hooks read/write information from the global post object or a PostContext.

Stores

Support Level

Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.

Contributing

Please read CODE_OF_CONDUCT.md for details on our code of conduct and CONTRIBUTING.md for details on the process for submitting pull requests to us.

Like what you see?

Work with 10up, we create amazing websites and tools that make content management simple and fun using open source tools and platforms