mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
* refactor: change to label tag where label property is accepted by component BlockLabel is being used as the main component for labels and should address the issue reported in Chat and File component closes issue 5454 * add changeset * fix: A form label must be associated with a control. * Update js/atoms/src/BlockLabel.svelte Co-authored-by: Hannah <hannahblair@users.noreply.github.com> * add changeset * add changeset * fix: refactor use label tag instead of div tag Change CSS styles from div to label selector in BlockLabel * fix: A form label must be associated with a control --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
@gradio/button
<script>
import { Button } from "@gradio/button";
</script>
<button type="primary|secondary" href="string" on:click="{e.detail === href}">
content
</button>