Created
September 28, 2020 19:02
-
-
Save lega911/3f0c69dffaaaae04695cce521670cbf1 to your computer and use it in GitHub Desktop.
Named $class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import Child from './Child.xht'; | |
let cond = true; | |
</script> | |
<input type="checkbox" :checked={cond} /> | |
<Child .header="red bold" .body:italic={cond} /> | |
<style> | |
.red {color: red;} | |
.italic {font-style: italic;} | |
.bold {font-weight: bold;} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class={$class.header}> | |
Header | |
</div> | |
<div class={$class.body}> | |
Body | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment