← Back to Components

Input

Premium single-line text input fields supporting diverse types.

Interactive Playground

R Code

API Reference

block_input()

Builds a standard single-line interactive form input element.

ArgumentTypeDefaultDescription
input_idcharacterrequiredInput identifier.
type'text' | 'password' | 'email' | 'url' | 'tel' | 'search' | 'number''text'HTML text field variant category type. The number type renders stepper buttons and reports a numeric value (NA while empty).
placeholdercharacterNULLPreview text before typing.
minnumericNULLLower bound for the stepper and arrow keys (number type only).
maxnumericNULLUpper bound for the stepper and arrow keys (number type only).
stepnumericNULLPositive step size (number type only; browser default 1).
disabledlogicalFALSEDisable user inputs.
invalidlogicalFALSEHighlight validation error borders.
stylecharacterNULLCustom layout wrapper styling.
classcharacterNULLAdditional styles to merge.

update_block_input()

Refreshes user text, hint messages, or active lock states dynamically.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredActive Shiny session object.
input_idcharacterrequiredTarget input control ID.
valuecharacterNULLUpdate text input value.
placeholdercharacterNULLSet new placeholder copy.
minnumericNULLReplace the lower bound (number type only); NULL clears it.
maxnumericNULLReplace the upper bound (number type only); NULL clears it.
stepnumericNULLReplace the step size (number type only); NULL resets to 1.
disabledlogicalNULLFreeze/unfreeze input.
invalidlogicalNULLToggle validation visual highlights.