mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
dfd03f38bd
* chore: update versions * Revert @gradio/code --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> |
||
---|---|---|
.. | ||
shared | ||
Button.stories.svelte | ||
CHANGELOG.md | ||
Index.svelte | ||
package.json | ||
README.md |
@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>