mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
2daf3d10f5
* 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>
35 lines
903 B
Markdown
35 lines
903 B
Markdown
# `@gradio/textbox`
|
|
|
|
```html
|
|
<script>
|
|
import { BaseTextbox, BaseExample } from "@gradio/textbox";
|
|
</script>
|
|
```
|
|
|
|
BaseTextbox
|
|
```javascript
|
|
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
|
|
```javascript
|
|
export let value: string;
|
|
export let type: "gallery" | "table";
|
|
export let selected = false;
|
|
``` |