mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
15 lines
167 B
HTML
15 lines
167 B
HTML
<div class='{{active ? "active": "inactive"}}'></div>
|
|
|
|
<style>
|
|
.active {
|
|
color: red;
|
|
}
|
|
|
|
.inactive {
|
|
color: blue;
|
|
}
|
|
|
|
.maybeactive {
|
|
color: green;
|
|
}
|
|
</style> |