mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
379 B
21 lines
379 B
3 years ago
|
<div class="box">
|
||
|
<slot name="header">No header was provided</slot>
|
||
|
<p>Some content between header and footer</p>
|
||
1 year ago
|
<slot name="footer" />
|
||
3 years ago
|
</div>
|
||
|
|
||
4 years ago
|
<style>
|
||
|
.box {
|
||
|
width: 300px;
|
||
|
border: 1px solid #aaa;
|
||
|
border-radius: 2px;
|
||
3 years ago
|
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
|
||
4 years ago
|
padding: 1em;
|
||
|
margin: 0 0 1em 0;
|
||
1 year ago
|
|
||
4 years ago
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
gap: 1em;
|
||
|
}
|
||
1 year ago
|
</style>
|