Skip to content

Add "Common Patterns" section to Textbox docs#13248

Open
yuzegong746-cmd wants to merge 2 commits intogradio-app:mainfrom
yuzegong746-cmd:docs/better-textbox-docs
Open

Add "Common Patterns" section to Textbox docs#13248
yuzegong746-cmd wants to merge 2 commits intogradio-app:mainfrom
yuzegong746-cmd:docs/better-textbox-docs

Conversation

@yuzegong746-cmd
Copy link
Copy Markdown

Summary

Add a "Common Patterns" section to the gr.Textbox component docs page with two practical recipes.

What's added

Multi-line text inputgr.Textbox defaults to a single line. Shows how to use lines and max_lines for longer text input such as paragraphs or code.

Password and sensitive input — Shows how to use type="password" to mask characters while passing plain text to the function.

Approach

Same pattern as #12755 (Row docs), #12922 (Image docs), and #12923 (Slider docs) — custom markdown section in the .svx file, no docstring changes.

Closes #12748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better Textbox docs

1 participant