gradio/ui/packages/button/src/Button.svelte

14 lines
283 B
Svelte
Raw Normal View History

2022-02-25 20:24:32 +08:00
<script lang="ts">
export let variant: "primary" | "secondary" = "secondary";
export let style: string = "";
export let size: "sm" | "lg" = "lg";
2022-02-25 20:24:32 +08:00
</script>
<button
on:click
{style}
class="gr-button gr-button-{size} gr-button-{variant} self-start flex-1"
>
2022-02-25 20:24:32 +08:00
<slot />
</button>