File size: 388 Bytes
8766bc5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <script lang="ts">
import { BaseButton } from "@gradio/button/static";
export let dependency_index: number;
export let run: (id: number) => Promise<void>;
</script>
<span class="space" />
<BaseButton variant="primary" on:click={run.bind(null, dependency_index)}>
Try It Out
</BaseButton>
<style>
.space {
display: flex;
flex-basis: 1;
margin-top: var(--size-4);
}
</style>
|