11
Single Directory Components
This chapter explores new additions to Drupal core. The experimental Single Directory Component (SDC) module improves the Drupal theming experience. It’s a new topic, but worth a chapter. You’ll have another valuable tool at your disposal.
The following topics will be covered in this chapter:
- The new kid on the block
- Creating a component with SDC
- Overriding CSS and JavaScript
- Overriding a component
- Component metadata
- Integration with Storybook
Technical requirements
To run the examples in this chapter, make sure to follow the instructions provided in Chapter 1, Setting Up a Local Environment.
You can find the code for this chapter in the GitHub repository: https://github.com/PacktPublishing/Modernizing-Drupal-10-Theme-Development ...
Get Modernizing Drupal 10 Theme Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.