<svelte:options customElement={{ props: {} }} />

<script lang="ts">
    const props = $props<{ target?: string | (() => unknown) }>();
    const target = $derived(
        typeof props.target === 'undefined' ? 'undefined' : props.target
    );
</script>


{#if typeof target === 'function'}
    {@render target?.()}
{:else }
    {@html target}
{/if}
