fix children prop passing
This commit is contained in:
parent
934706961d
commit
137b637491
3 changed files with 9 additions and 3 deletions
|
|
@ -10,7 +10,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if browser}
|
{#if browser}
|
||||||
<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps} />
|
<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps}>
|
||||||
|
{@render children?.()}
|
||||||
|
</CollapsiblePrimitive.Content>
|
||||||
{:else}
|
{:else}
|
||||||
<div data-slot="collapsible-content" {...restProps}>
|
<div data-slot="collapsible-content" {...restProps}>
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if browser}
|
{#if browser}
|
||||||
<CollapsiblePrimitive.Trigger bind:ref data-slot="collapsible-trigger" {...restProps} />
|
<CollapsiblePrimitive.Trigger bind:ref data-slot="collapsible-trigger" {...restProps}>
|
||||||
|
{@render children?.()}
|
||||||
|
</CollapsiblePrimitive.Trigger>
|
||||||
{:else}
|
{:else}
|
||||||
<button data-slot="collapsible-trigger" {...restProps}>
|
<button data-slot="collapsible-trigger" {...restProps}>
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if browser}
|
{#if browser}
|
||||||
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps} />
|
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps}>
|
||||||
|
{@render children?.()}
|
||||||
|
</CollapsiblePrimitive.Root>
|
||||||
{:else}
|
{:else}
|
||||||
<div data-slot="collapsible">
|
<div data-slot="collapsible">
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
|
|
|
||||||
Reference in a new issue