gradio/js/textbox
WH-Yoshi 2daf3d10f5
Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter (#9185)
* Testing - NOT SURE

* changed max_length name

* Finished adding max_length handling

* Changed Readme

* add changeset

* Update test_textbox.py

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-27 23:42:05 +00:00
..
shared Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter (#9185) 2024-08-27 23:42:05 +00:00
CHANGELOG.md chore: update versions (#9072) 2024-08-21 11:35:46 -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 Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter (#9185) 2024-08-27 23:42:05 +00:00
package.json Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
README.md Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter (#9185) 2024-08-27 23:42:05 +00:00
Textbox.stories.svelte Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter (#9185) 2024-08-27 23:42:05 +00:00
Textbox.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
TextboxExample.stories.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00

@gradio/textbox

<script>
    import { BaseTextbox, BaseExample } from "@gradio/textbox";
</script>

BaseTextbox

	export let value = "";
	export let value_is_output = false;
	export let lines = 1;
	export let placeholder = "Type here...";
	export let label: string;
	export let info: string | undefined = undefined;
	export let disabled = false;
	export let show_label = true;
	export let container = true;
	export let max_lines: number;
	export let type: "text" | "password" | "email" = "text";
	export let show_copy_button = false;
	export let rtl = false;
	export let autofocus = false;
	export let text_align: "left" | "right" | undefined = undefined;
	export let autoscroll = true;
	export let max_length: number | undefined = undefined;

BaseExample

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