~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
27 lines · 542 B Raw History
<script lang="ts">
  import type { Snippet } from 'svelte'

  let { label, children }: { label?: string; children: Snippet } = $props()
</script>

{#if label}
  <h3 class="section-label">{label}</h3>
{/if}
<div class="settings-group">
  {@render children()}
</div>

<style>
  .section-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .settings-group {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
</style>