<script lang="ts">
	import { idFromLabel } from '$lib/Utils';

	export let label: string;

	const id = idFromLabel(label);
</script>

<label class="self-center" for={id}>{label}</label>
<slot {id} />
