mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
32 lines
767 B
Svelte
32 lines
767 B
Svelte
<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} {open}>
|
|
<Column>
|
|
<slot />
|
|
</Column>
|
|
</Accordion>
|
|
</Block>
|