Reusable component design tip: Honor the native HTML element's API


Reusable component design tip:

Honor the native HTML element's API.

If it accepts children, your reusable component probably should too.

If it accepts certain HTML attributes, the reusable component probably should too.

View original on X