python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Can't apply tailwind color classes conditionally (through props) in sveltekit
Card.svelte
<script lang="ts">
export let active;
export let color;
</script>
<div
class={classnames(`w-80 border-4 rounded-lg p-6 border-${color}-500`, {
[`b...
eflat
Votes: 0
Answers: 0
Svelte how to bind div inside each lop to obtain a reference using this
I need to get a reference to every div created inside a each loop in svelte, then I'll use the reference to toggle css class of a certain div when the user clicks on previous div.
let contentOptio...

Toni BCN
Votes: 0
Answers: 1
Why "Uncaught (in promise) TypeError: this.Root is not a constructor"?
Anyone seen Uncaught (in promise) TypeError: this.Root is not a constructor (start.js:692 ) in the browser console?
I've tried resetting endpoints, pages, hooks.js and jsconfig.json without any luck.
Mattias Inokuchi
Votes: 0
Answers: 1
Svelte change color of buttons indivually
I have some buttons and when i click on each of them the background-color should change. Right now it changes the color of all buttons when one is clicked. However it should be for each button individ...
Jan Masta
Votes: 0
Answers: 2