File size: 878 Bytes
e0959f5 |
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 33 34 35 |
<script context="module" lang="ts">
export { default as BaseButton } from "./shared/Button.svelte";
</script>
<script lang="ts">
import { Gradio } from "@gradio/utils";
import type { SharedProps } from "@gradio/utils";
import Button from "./shared/Button.svelte";
let _props: { shared_props: SharedProps; props: {} } = $props();
const gradio = new Gradio<never, {}>(_props);
function handle_click() {
gradio.dispatch("click");
}
</script>
<Button
value={gradio.props.value}
variant={gradio.props.variant}
elem_id={gradio.shared.elem_id}
elem_classes={gradio.shared.elem_classes}
size={gradio.props.size}
scale={gradio.props.scale}
link={gradio.props.link}
icon={gradio.props.icon}
min_width={gradio.shared.min_width}
visible={gradio.shared.visible}
disabled={!gradio.shared.interactive}
on:click={handle_click}
>
{gradio.props.value ?? ""}
</Button>
|