DEV Community

Jingtao Han
Jingtao Han

Posted on

Building a Web Component

There are a lot of thing to consider creating a new web component. Elements, attributes, properties, accessibility for disadvantaged people, security, flexibility, functionality and stylization are all important aspects in a web components. In this post, I will go through some of these aspects and the process with an example.

Image description

As shown in the cards above, one card can be breakdown into several elements:

  • the icon
  • the banner with a header and sub-header and filled color
  • slotted html content below the

Project Gauge
As an outside view, creating this card component seems pretty manageable. One of our criteria is to implement the slot feature and we already have experience with that in our button project. My main concern is working with HAX. I don't have experience with HAX so there may be a learning curve for me there.

Top comments (0)