Path: blob/main/examples/reference/widgets/PasswordInput.ipynb
3199 views
The PasswordInput allows entering any string using an obfuscated text input box.
Discover more on using widgets to add interactivity to your applications in the how-to guides on interactivity. Alternatively, learn how to set up callbacks and (JS-)links between parameters or how to use them as part of declarative UIs with Param.
Parameters:
For details on other options for customizing the component see the layout and styling how-to guides.
Core
value(str): The current value updated when pressing<enter>key.value_input(str): The current value updated on every key press.
Display
disabled(boolean): Whether the widget is editablemax_length(int): The maximum number of allowed characters.name(str): The title of the widgetplaceholder(str): A placeholder string displayed when no value is entered
PasswordInput.value returns a string type that can be read out and set like other widgets:
Controls
The PasswordInput widget exposes a number of options which can be changed from both Python and Javascript. Try out the effect of these parameters interactively: