🗂️ Overview#
This directory houses fine-grained, reusable building blocks used across WP2 Modules, Themes, or Plugins. Components often represent specific UI elements, configuration objects, or low-level definitions, particularly related to the block editor, styling, and data structures.
These are typically smaller and more focused than Modules.
Component Categories:#
- Alerts
- Assets
- Block Elements
- Block Extensions
- Block Patterns
- Block Types
- Borders
- Breakpoints
- Colors
- Custom Queries
- Custom Templates
- Editors
- Favicons
- Fields
- Font Faces
- Font Families
- Font Sizes
- Forms
- Icons
- Images
- Libraries
- Plugins (likely component-level plugin integrations or definitions)
- Policies
- Post Types (potentially base definitions or shared types)
- Ratios
- Shadows
- Spacing Sizes
- Taxonomies (potentially base definitions or shared taxonomies)
- Template Part Areas
- Template Parts
- Template Types
- Visibility Presets
- Z Indexes
Purpose#
Components provide the fundamental, reusable pieces used to construct more complex features within Modules and Themes. They promote consistency and DRY (Don’t Repeat Yourself) principles in development.