my_gradio / js /button /README.md
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified

A newer version of the Gradio SDK is available: 5.12.0

Upgrade

@gradio/button

<script>
    import { BaseButton } from "@gradio/button";
    import { createEventDispatcher, tick, getContext } from "svelte";
    const dispatch = createEventDispatcher();
</script>

<BaseButton
    {value}
    {variant}
    {elem_id}
    {elem_classes}
    {size}
    {scale}
    {link}
    {icon}
    {min_width}
    {visible}
    {root}
    {root_url}
    on:click={() => dispatch("click")}
>
    {"My Button"}
</Button>