Drupal is a registered trademark of Dries Buytaert
drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)!

sdc_extras

No security coverage
View on drupal.org

SDC Extras adds declarative directives to your Single Directory Component (SDC) definitions that control how each prop is presented in the Drupal Canvas editing UI, with no JavaScript and no per-component form alters.

Canvas automatically builds an editing form from a component's prop schema. SDC Extras lets you refine that form directly in your *.component.yml file by adding custom x-* keys to individual props:

  • x-no-ui hides a prop from the Canvas UI while keeping its stored value and default, so the value still renders in your template. Ideal for developer-controlled or derived props that authors shouldn't edit.
  • x-visible-when shows a prop only when another prop has a given value, e.g. reveal "CTA label" and "CTA URL" only when a "Show call to action" toggle is on. Built on Drupal's Form API #states.

Because these keys live on the prop schema (which SDC validates against the full JSON Schema meta-schema, permitting custom x-* keywords), they require no patches and follow the same convention Canvas core already uses for keys like x-translation-context and x-formatting-context.

Example

props:
  type: object
  properties:
    internal_ref:
      type: string
      x-no-ui: true
    show_cta:
      type: boolean
      title: 'Show call to action'
    cta_label:
      type: string
      title: 'CTA label'
      x-visible-when: show_cta

Requirements: Drupal 11.2+ and the Canvas module.

Activity

Total releases
1
First release
Jul 2026
Latest release
7 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jul 9, 2026