canvas-component-definition
Installation
SKILL.md
Canonical definition
A Canvas component is a package of:
- A React implementation (
index.jsx) - Canvas metadata/schema (
component.yml) - Naming and structure compatibility (
machineName, folder path, Workbench mock path) - Canvas-compatible props/slots modeling
- Workbench mock coverage for authored preview states
The first four parts are required for the component to be usable in Drupal
Canvas. Workbench mocks are the supported way to author named preview states
beyond Workbench's built-in Default tab.
Minimum contract (MUST)
Every Canvas component MUST satisfy all checks below: