<script>
    export let title = ""
</script>
<div>
    <div class="sidebar title">
        {title}
    </div>
    <div class="sidebar">
        <slot />
    </div>
</div>

<style>
    .sidebar
    {
        background: red;
    }
    .sidebar.title
    {
        text-align: center;
        font-weight: bolder;
    }
</style>