File size: 770 Bytes
0ad74ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<script lang="ts">
import Accordion from "./shared/Accordion.svelte";
import { Block } from "@gradio/atoms";
import { StatusTracker } from "@gradio/statustracker";
import type { LoadingStatus } from "@gradio/statustracker";
import Column from "@gradio/column";
import type { Gradio } from "@gradio/utils";
export let label: string;
export let elem_id: string;
export let elem_classes: string[];
export let visible = true;
export let open = true;
export let loading_status: LoadingStatus;
export let gradio: Gradio;
</script>
<Block {elem_id} {elem_classes} {visible}>
<StatusTracker
autoscroll={gradio.autoscroll}
i18n={gradio.i18n}
{...loading_status}
/>
<Accordion {label} bind:open>
<Column>
<slot />
</Column>
</Accordion>
</Block>
|