When:
to
Room:
Room 3.5 & 3.6 (3)
Tags:
development & coding
Track:
SVG
makers & builders

Single Directory Components in Core

Single Directory Components in Core

Mike Herchel (mherchel)

Twig was introduced into Drupal core over 10 years ago. Since then, improvements to Drupal’s front-end API have been minimal. Meanwhile, other front-end ecosystems have implemented a superior developer experience including hot-reloading, tooling for automation, component libraries, shared component repositories, and more.

Drupal’s front-end has some catching-up to do, and we believe Single Directory Components (SDC) is the answer! SDC lets the developer add all of a component’s assets into one directory (e.g. template, CSS, JavaScript, and metadata). This component can then be automatically used by display modes or called upon from another template.

In this fun-filled and exciting presentation, I will answer questions such as:

- What problem are we fixing?
- How do SDC work? Will we have slots, props, & all the buzz words?
- How can it be integrated with systems like Storybook, Fractal, etc.?
- How can contrib modules and themes extend this? How can you use it in your projects?
- How does this differ from contrib solutions such as SFC, UI Patterns, Emulsify, Compony, and others?
- What is the future of SDC in core? Is it done yet?

To get the most out of this session, you should be familiar with Drupal’s current paradigm of theming, and have shown your puzzled face, or cursed, at it more than once.
Session (45 minutes)

Experience level of the audience


Beginner