Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Scoped CSS Snippet (Blog)
<template>
<require from="./card-styles.css" as="scoped"></require> //only works in Firefox at the time of writing
<template id="info-card">
<div class="card-content">
<slot name="header">To be replaced with header</slot>
<div class="card-body">
<slot name="body"><p>To be replaced with body </p></slot>
</div>
</div>
</template>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment