@digitalsilk/block-editor-components
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Digital Silk Block Editor Components

A library of React components designed for use in the WordPress Block Editor.

Installation

Install the package using npm:

npm install --save @digitalsilk/block-editor-components

--OR--

Install the package using yarn:

yarn add @digitalsilk/block-editor-components

Usage

Import the desired component(s) into your theme or plugin block editor code. For example:

import { Image, Video, MediaPicker, getMedia } from "@digitalsilk/block-editor-components";

Components

The library provides a set of React components designed for seamless integration into the WordPress Block Editor. These components offer a range of functionalities, including controls for elements and display options for media such as images, icons, and videos. Easily enhance your block editor experience with these versatile components.

Available Components

Selectors

The library includes selectors that leverage the power of the useSelect hook from the @wordpress/data package. These selectors, such as getMedia, provide utilities for efficiently retrieving media details and resolution status from the WordPress core data store. Seamlessly integrate these selectors into your components to enhance data retrieval and state management within the block editor.

Available Selectors

Readme

Keywords

none

Package Sidebar

Install

npm i @digitalsilk/block-editor-components

Weekly Downloads

26

Version

0.3.0

License

GPL-2.0-or-later

Unpacked Size

402 kB

Total Files

112

Last publish

Collaborators

  • digitalsilk