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
The documentation for lit https://twind.style/with-lit only provides an example of how to use tailwind classes in the render function, but there seems to be no way to style the :host element without using standard css. Passing classes to a slot element seems to also do nothing.
Are there any example of these?
Thanks!
The text was updated successfully, but these errors were encountered:
It's possible to add classes to host element with one of the lifecycle methods, such as firstUpdate(). It executes tasks that need to be performed once the component's DOM has been created. Below will add 'tw-class' to host element.
I wouldn't have a host modify it's own class attribute. That will collide with uses of the element setting classes themselves. In general, a host's attribute's don't "belong" to the host, they belong to the container of the host.
The documentation for lit https://twind.style/with-lit only provides an example of how to use tailwind classes in the render function, but there seems to be no way to style the
:host
element without using standard css. Passing classes to a slot element seems to also do nothing.Are there any example of these?
Thanks!
The text was updated successfully, but these errors were encountered: