gradio-pr-bot commited on
Commit
0202193
·
verified ·
1 Parent(s): c3669be

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 6.23.0/box/Index.svelte +14 -4
6.23.0/box/Index.svelte CHANGED
@@ -1,10 +1,20 @@
1
  <script lang="ts">
 
2
  import { Block } from "@gradio/atoms";
3
- export let elem_id: string;
4
- export let elem_classes: string[];
5
- export let visible: boolean | "hidden" = true;
 
 
 
 
 
 
 
 
 
6
  </script>
7
 
8
  <Block {elem_id} {elem_classes} {visible} explicit_call>
9
- <slot />
10
  </Block>
 
1
  <script lang="ts">
2
+ import type { Snippet } from "svelte";
3
  import { Block } from "@gradio/atoms";
4
+
5
+ let {
6
+ elem_id,
7
+ elem_classes,
8
+ visible = true,
9
+ children
10
+ }: {
11
+ elem_id: string;
12
+ elem_classes: string[];
13
+ visible?: boolean | "hidden";
14
+ children?: Snippet;
15
+ } = $props();
16
  </script>
17
 
18
  <Block {elem_id} {elem_classes} {visible} explicit_call>
19
+ {@render children?.()}
20
  </Block>