github / relative-time-element

Web component extensions to the standard <time> element.
https://github.github.io/relative-time-element/examples/
MIT License
3.57k stars 170 forks source link

add define static method #257

Closed keithamus closed 1 year ago

keithamus commented 1 year ago

This makes a few small tweaks to how we define elements.

It adds a define() static member to the RelativeTimeElement class, which allows changing of tag/registry. It calls that method in the relative-time-element-define file.

This also exports the class as both named and default exports. We may drop the default export at a future date.

primer-css commented 1 year ago

:wave: Hello and thanks for pinging us! This issue or PR has been added to our inbox and a Design Infrastructure first responder will review it soon.