DEV Community

Cover image for Attribute, Property, or Directive
Alex Patterson for CodingCatDev

Posted on

Attribute, Property, or Directive

Can I just say one noun?

Granted I jump between Raw HTML, Hugo template, Ionic components, React props, and Angular Elements daily. I still stutter in every video I make trying to call that thing in a tag the right name. I get it, really, they all do different things, but what would you call buttonType in

<ajonp-button buttonType>
Enter fullscreen mode Exit fullscreen mode

Am I safe just calling it an attribute?

Should I just say property?

That thing could be an HTML Custom element, Angular Component, Vue...

Let me know below!

Top comments (0)