mirror of https://github.com/sveltejs/svelte
21 lines
379 B
21 lines
379 B
<div class="box">
|
|
<slot name="header">No header was provided</slot>
|
|
<p>Some content between header and footer</p>
|
|
<slot name="footer" />
|
|
</div>
|
|
|
|
<style>
|
|
.box {
|
|
width: 300px;
|
|
border: 1px solid #aaa;
|
|
border-radius: 2px;
|
|
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
|
|
padding: 1em;
|
|
margin: 0 0 1em 0;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
}
|
|
</style>
|