32 lines
612 B
Svelte
32 lines
612 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from "svelte";
|
|
import MonoLabel from "./MonoLabel.svelte";
|
|
|
|
interface Props {
|
|
label: string;
|
|
children: Snippet;
|
|
}
|
|
let { label, children }: Props = $props();
|
|
</script>
|
|
|
|
<div class="setting-group">
|
|
<MonoLabel>{label}</MonoLabel>
|
|
<div class="setting-control">{@render children()}</div>
|
|
</div>
|
|
|
|
<style>
|
|
.setting-group {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.6rem 1rem;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.setting-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
</style>
|