my_gradio / js /accordion /Index.svelte
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
raw
history blame contribute delete
770 Bytes
<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>