gradio/js/label
Hannah a2a3cd466c
Add show_heading param to gr.Label (#9987)
* add hide_heading param

* amend hide heading logic for single labels

* add changeset

* add changeset

* fix test

* tweak docstring

* hide_heading -> show_heading

* add changeset

* set show_headings to true

* lint

* fix hidden top label

* fix background fill for ms and webkit

* add changeset

* Update gradio/components/label.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 19:26:23 +00:00
..
shared Add show_heading param to gr.Label (#9987) 2024-11-27 19:26:23 +00:00
CHANGELOG.md chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
Index.svelte Add show_heading param to gr.Label (#9987) 2024-11-27 19:26:23 +00:00
Label.component.spec.ts
Label.stories.svelte Add show_heading param to gr.Label (#9987) 2024-11-27 19:26:23 +00:00
package.json chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
README.md

@gradio/label

<script>
	import { BaseLabel } from "@gradio/label";
</script>

BaseLabel

	export let value: {
		label?: string;
		confidences?: { label: string; confidence: number }[];
	};
	export let color: string | undefined = undefined;
	export let selectable = false;