gradio/js/button
Hannah 37caa2e0fe
Add icon and link params to gr.Button (#5080)
* add icons and link params

* tweak

* add changeset

* prepend icon param with /file=

* prepend icon with /file=

* restore and add button stories

* add changeset

* param description tweak

* tweak param description

* type tweak

* fix i18n in story

* fix formatting

* fix test

* tweak

* fix typo

* fix icon bug

* fix inconsistent width

* remove <a /> target

* styling changes + add story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:47:20 +02:00
..
static Add icon and link params to gr.Button (#5080) 2023-08-04 17:47:20 +02:00
Button.stories.svelte Add icon and link params to gr.Button (#5080) 2023-08-04 17:47:20 +02:00
CHANGELOG.md chore: update versions (#4999) 2023-07-26 17:10:24 -04:00
package.json Refactor component directories (#5074) 2023-08-03 23:01:18 +01:00
README.md move files (#3605) 2023-03-27 16:12:58 -07:00

@gradio/button

<script>
	import { Button } from "@gradio/button";
</script>

<button type="primary|secondary" href="string" on:click="{e.detail === href}">
	content
</button>