-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @as
to customize root element
#77
Comments
I'm in favor |
Might be nice to create a helper named something like {{#let (component-or-element @as) as |Tag|}}
|
Hmm, ^ might not be possible as the https://github.com/tildeio/ember-element-helper/blob/main/addon/helpers/element.js |
do we have an RFC for an element helper? maybe we need to implement that over in the glimmer-vm? |
A quick improvement might be to just create a |
The https://github.com/tildeio/ember-element-helper readme references a couple of RFCs |
👋 Interested in contributing to this project and this seems like a good one to pick up (unless someone is already working on this of course). Couple of questions:
|
Some of our component use a
@tagName
argument to customize the root element, while others use@as
We should use
@as
across all components for two main reasons:Menu::ItemElement
does (to supportLinkTo
)ember-headlessui/addon/components/menu/item-element.hbs
Lines 1 to 4 in e936dff
Note: this will be a breaking change for the components currently configured to use
@tagName
The text was updated successfully, but these errors were encountered: