<script lang="ts">
	export let title = '';
	export let id = title.toLowerCase();
	export let open = true;
</script>

<details {open} {id}>
	{#if title}
		<summary>{title}</summary>
	{/if}

	<slot />
</details>

<p />
