FEA-Bench / testbed /gradio-app__gradio /js /tabitem /static /StaticTabItem.svelte
hc99's picture
Add files using upload-large-folder tool
8766bc5 verified
raw
history blame
455 Bytes
<script lang="ts">
import type { Gradio, SelectData } from "@gradio/utils";
import TabItem from "./TabItem.svelte";
export let elem_id = "";
export let elem_classes: string[] = [];
export let label: string;
export let id: string | number;
export let gradio: Gradio<{
select: SelectData;
}>;
</script>
<TabItem
{elem_id}
{elem_classes}
name={label}
{id}
on:select={({ detail }) => gradio.dispatch("select", detail)}
>
<slot />
</TabItem>