-
+
+ {@render children?.()}
{/if}
diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte
index f9f401df6..b37083573 100644
--- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte
+++ b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte
@@ -1,76 +1,36 @@
-{#if asChild && $open}
-
-{:else if transition && $open}
-
-
-{:else if inTransition && outTransition && $open}
-
-
-{:else if inTransition && $open}
-
-
-{:else if outTransition && $open}
-
-
-{:else if $open}
-
-
-{/if}
+
+ {#snippet presence({ present })}
+ {#if asChild}
+ {@render child?.({ props: mergeProps(mergedProps, { hidden: !present.value }) })}
+ {:else}
+
+ {@render children?.()}
+
+ {/if}
+ {/snippet}
+
diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-portal.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-portal.svelte
deleted file mode 100644
index 0dbf9b165..000000000
--- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-portal.svelte
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-{#if asChild}
-
-{:else}
-
-
-
-{/if}
diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-title.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-title.svelte
index f6943dbd9..36961db65 100644
--- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-title.svelte
+++ b/packages/bits-ui/src/lib/bits/dialog/components/dialog-title.svelte
@@ -1,35 +1,32 @@
{#if asChild}
-
+ {@render child?.({ props: mergedProps })}
{:else}
-
-
-
+
+ {@render children?.()}
+
{/if}
diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-trigger.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-trigger.svelte
index 36a6eda0d..9906a8170 100644
--- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-trigger.svelte
+++ b/packages/bits-ui/src/lib/bits/dialog/components/dialog-trigger.svelte
@@ -1,38 +1,30 @@
{#if asChild}
-
+ {@render child?.({ props: mergedProps })}
{:else}
-