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 i have class name in some variable, and I can't use svelte with that.
If it will be like variable, i can easy to navigate my css class in my IDE.
Describe the proposed solution
<script>
import s from './my.css';
export let checked = true;
</script>
<div class:{s.myClassName}={$checked}></div>
Alternatives considered
<script>
import s from './my.css';
export let checked = true;
</script>
<div class={{ s.myClassName: $checked }}></div>
Importance
would make my life easier
The text was updated successfully, but these errors were encountered:
Describe the problem
Sometimes i have class name in some variable, and I can't use svelte with that.
If it will be like variable, i can easy to navigate my css class in my IDE.
Describe the proposed solution
Alternatives considered
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: