Components
MediaPress Components
Section titled “MediaPress Components”This package contains components which can be utilized by other packages within this repo.
Each component is listed here for discovery purposes, but should be documented directly using JSDoc blocks with detailed types and usage information.
Available Components
Section titled “Available Components”Accordion- An expandable accordion component.ImageVariationPicker- A UI to adjust crops and variations of an image.Panel- A full screen panel used to render a block editor plugin.
Example Usage
Section titled “Example Usage”This bundle is built as a UMD module. Each component is available as a named export, so can be imported using either of the following methods:
import { Panel } from '@mediapress/components';// ORconst { Panel } = require('@mediapress/components');In order to import a component successfully, this package must be listed as a dependency within the package.json of the consuming package. This should include a relative path to the entrypoint of this package, e.g:
"dependencies": { "@mediapress/components": "file:../components"}