canvas-component-definition

Installation
SKILL.md

Canonical definition

A Canvas component is a package of:

  1. A React implementation (index.jsx)
  2. Canvas metadata/schema (component.yml)
  3. Naming and structure compatibility (machineName, folder path, Workbench mock path)
  4. Canvas-compatible props/slots modeling
  5. 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:

Installs
111
GitHub Stars
2
First Seen
Feb 13, 2026
canvas-component-definition — drupal-canvas/skills