File size: 413 Bytes
a03b3ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# `@gradio/button`

```javascript
<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>
```