DEV Community

Cover image for Attribute, Property, or Directive

Attribute, Property, or Directive

ajonp profile image Alex Patterson ・1 min read

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!

Discussion (0)

Editor guide