Slots are a HTML element that allows the user to set a placeholder inside of a web component to fill up with any markup. This lets you create multiple DOM trees and present them all together.
Our latest project, called learning-card, has multiple uses of this element for us to fill with any content we want. Below is the example card that we are trying to replicate.
This is what we have so far for this project, as there is a lot more to fix and add to this.
Follow the project: https://github.com/TheKodingKrab/project-two
Top comments (0)