gradio/js/radio
Abubakar Abid 9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933)
* image-editor-examples

* add changeset

* add changeset

* delete changeset

* change to process_example()

* add changeset

* changes for all components until dataset.py

* rename

* fix checkboxgroup

* format

* changes

* add changeset

* changes

* add changeset

* radio

* add changeset

* changes

* add changeset

* changes

* examples

* remove print

* fix

* clean

* add changeset

* fix tests

* fix tests

* fix test

* fix

* add changeset

* fix video example

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
..
shared Fix bug where radio.select passes the previous value to the function instead of the selected value (#6262) 2023-11-02 16:40:42 -04:00
CHANGELOG.md chore: update versions (#6825) 2023-12-19 16:17:10 -08:00
Example.svelte Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933) 2024-01-10 16:35:25 -08:00
Index.svelte ensure radios have different names (#6249) 2023-11-02 20:06:18 +00:00
package.json chore: update versions (#6825) 2023-12-19 16:17:10 -08:00
Radio.stories.svelte Fix stories (#6244) 2023-11-02 12:10:11 +00:00
Radio.test.ts Fix bug where radio.select passes the previous value to the function instead of the selected value (#6262) 2023-11-02 16:40:42 -04:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/radio

<script>
    import { BaseRadio, BaseExample } from "@gradio/radio"; 
</script>

BaseRadio

	export let display_value: string;
	export let internal_value: string | number;
	export let disabled = false;
	export let elem_id = "";
	export let selected: string | number | null = null;

BaseExample

	export let value: string;
	export let type: "gallery" | "table";
	export let selected = false;