@wp-playground/components
v3.0.46
Published
A library of reusable, dependency-free components (well, React is a dependency) that can be reused between Playground webapp, WordPress plugins, WordPress blocks, and the Blueprints builder. For example, the PathMappingControl will make a good fit for all
Keywords
Readme
Playground components
A library of reusable, dependency-free components (well, React is a dependency) that can be reused between Playground webapp, WordPress plugins, WordPress blocks, and the Blueprints builder. For example, the PathMappingControl will make a good fit for all these places.
Design decisions
The components in this package use @wordpress/components under the hood. Web components were considered for portability, but ultimately weren't used because they:
- Wouldn't have the native WordPress look and feel
- Couldn't easily mix with WordPress components
- Had some issues around focus management
Development Instructions (or ideally a Blueprint)
- Run
nx dev playground-components - Go to http://localhost:5173/
- Play with the widgets and confirm they work intuitively
