Skip to content
Textual
Input
Initializing search
GitHub
Home
Introduction
Tutorial
Guide
Widgets
Reference
API
How To
FAQ
Roadmap
Blog
Textual
GitHub
Home
Introduction
Introduction
Getting started
Help
Tutorial
Guide
Guide
Devtools
App Basics
Styles
Textual CSS
DOM Queries
Layout
Events and Messages
Input
Actions
Reactivity
Themes
Widgets
Content
Animation
Screens
Workers
Command Palette
Testing
Widgets
Reference
Reference
CSS Types
CSS Types
<border>
<color>
<hatch>
<horizontal>
<integer>
<keyline>
<name>
<number>
<overflow>
<position>
<percentage>
<scalar>
<text-align>
<text-style>
<vertical>
Events
Events
AppBlur
AppFocus
Blur
Click
DescendantBlur
DescendantFocus
Enter
Focus
Hide
Key
Leave
Load
Mount
MouseCapture
MouseDown
MouseMove
MouseRelease
MouseScrollDown
MouseScrollUp
MouseUp
Paste
Print
Resize
ScreenResume
ScreenSuspend
Show
Unmount
Styles
Styles
Align
Background
Background-tint
Border
Border-subtitle-align
Border-subtitle-background
Border-subtitle-color
Border-subtitle-style
Border-title-align
Border-title-background
Border-title-color
Border-title-style
Box-sizing
Color
Content-align
Display
Dock
Grid
Grid
Column-span
Grid-columns
Grid-gutter
Grid-rows
Grid-size
Row-span
Hatch
Height
Keyline
Layer
Layers
Layout
Links
Links
Link-background
Link-background-hover
Link-color
Link-color-hover
Link-style
Link-style-hover
Margin
Max-height
Max-width
Min-height
Min-width
Offset
Opacity
Outline
Overflow
Padding
Position
Scrollbar colors
Scrollbar colors
Scrollbar-background
Scrollbar-background-active
Scrollbar-background-hover
Scrollbar-color
Scrollbar-color-active
Scrollbar-color-hover
Scrollbar-corner-color
Scrollbar-gutter
Scrollbar-size
Scrollbar-visibility
Text-align
Text-opacity
Text-overflow
Text-wrap
Text-style
Tint
Visibility
Width
Widgets
Widgets
Button
Checkbox
Collapsible
ContentSwitcher
DataTable
Digits
DirectoryTree
Footer
Header
Input
Input
Table of contents
Examples
A Simple Example
Input Types
Restricting Input
Maximum Length
Validating Input
Validate Empty
Reactive Attributes
Messages
Bindings
Component Classes
Additional Notes
Input
value
placeholder
highlighter
password
restrict
type
max_length
suggester
validators
validate_on
valid_empty
select_on_focus
name
id
classes
disabled
tooltip
compact
BINDINGS
COMPONENT_CLASSES
compact
content_width
cursor_at_end
cursor_at_start
cursor_position
cursor_screen_offset
is_valid
max_length
restrict
selected_text
selection
suggester
type
valid_empty
validate_on
Blurred
control
input
validation_result
value
Changed
control
input
validation_result
value
Submitted
control
input
validation_result
value
action_copy
action_cursor_left
select
action_cursor_left_word
select
action_cursor_right
select
action_cursor_right_word
select
action_cut
action_delete_left
action_delete_left_all
action_delete_left_word
action_delete_right
action_delete_right_all
action_delete_right_word
action_end
select
action_home
select
action_paste
action_select_all