is there some way to have event handlers for html inside of divs? #1401
Unanswered
kabirverman
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Does this work for your purposes? let html = `<div class="flex flex-col gap-5">
<h1>Hey there</h1>
<p class="text-red-500">this is a test</p>
</div>`
let css = `
h1:hover {
color: red;
}
`
await div({
css,
html,
}) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to do something like this and it isnt working:
Beta Was this translation helpful? Give feedback.
All reactions