You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's really helpful to make the tag name dynamic.
For instance, let's say you're making a button component. Sometimes buttons are HTML <a> tags (e.g., for links) and sometimes they're HTML <button> tags (e.g., to submit a form). But much of the styling and JS functionality is the same.
Several front-end frameworks allow the tag names to be dynamic. For instance with Svelte, you can write the following:
<script>
explort let href =''consttag= href ?"a":"button"
</script>
<svelte:elementthis={tag} {href}>
I'm a button
</svelte:element>
It would be great to allow Maud to have similar functionality.
The text was updated successfully, but these errors were encountered:
It could be nice to have something that let us make a cleaner line, or to have the possibility to extends existant tags (like head, div, p, ...), maybe with a trait or something else ?
Sometimes it's really helpful to make the tag name dynamic.
For instance, let's say you're making a button component. Sometimes buttons are HTML
<a>
tags (e.g., for links) and sometimes they're HTML<button>
tags (e.g., to submit a form). But much of the styling and JS functionality is the same.Several front-end frameworks allow the tag names to be dynamic. For instance with Svelte, you can write the following:
It would be great to allow Maud to have similar functionality.
The text was updated successfully, but these errors were encountered: