gradio/js/dropdown
pngwn bf5110a26b
chore: update versions (#7771)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-25 12:35:44 -04:00
..
shared Quick fix: custom dropdown value (#7567) 2024-03-05 15:21:30 -08:00
CHANGELOG.md chore: update versions (#7771) 2024-03-25 12:35:44 -04:00
Dropdown.stories.svelte Ensure gr.Dropdown can have an empty initial value (#7431) 2024-02-15 18:24:02 +01:00
dropdown.test.ts Migrate to Storybook 8 (#7743) 2024-03-19 11:22:21 -07:00
Example.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00
Index.svelte Ensure gr.Dropdown can have an empty initial value (#7431) 2024-02-15 18:24:02 +01:00
Multiselect.stories.svelte format (#6658) 2023-12-04 14:37:04 -08:00
package.json chore: update versions (#7771) 2024-03-25 12:35:44 -04:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/dropdown

<script>
    import {BaseDropdown, BaseMultiselect, BaseExample } from "@gradio/dropdown";
</script>

BaseDropdown

	export let label: string;
	export let info: string | undefined = undefined;
	export let value: string | number | (string | number)[] | undefined = [];
	export let value_is_output = false;
	export let choices: [string, string | number][];
	export let disabled = false;
	export let show_label: boolean;
	export let container = true;
	export let allow_custom_value = false;
	export let filterable = true;

BaseMultiselect

	export let label: string;
	export let info: string | undefined = undefined;
	export let value: string | number | (string | number)[] | undefined = [];
	export let value_is_output = false;
	export let max_choices: number | null = null;
	export let choices: [string, string | number][];
	export let disabled = false;
	export let show_label: boolean;
	export let container = true;
	export let allow_custom_value = false;
	export let filterable = true;
	export let i18n: I18nFormatter;

BaseExample

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