JS Web Components

rlnorthcutt

Core needs to standardize on a common method for easily including JS web components in core. While there are a number of approaches, we will look at the "component" module and how it makes it as easy as possible for a JS developer to make their components available as Drupal blocks without having to write PHP or even know too much about Drupal itself using YML auto-discovery.

In this session, we will look at how the "component" module works, how to easily add web components (and libraries) to your site, and when this approach makes the most sense. With just a yml file, you can not only make JS components available to Drupal as blocks, but also rely on Drupal's library system for dependencies, aggregation, and easy management of these assets.

Using these components is as simple as placing a block - and we can even pass block configuration through to the front end to customize each component instance!

https://www.drupal.org/project/component

Track

Core Contributions

When & Where

Time: 
Tuesday, 13 April, 2021 - 16:55 to 17:10
Room: 
Hopin - Room 2