Skip to content
Textual
Tree
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
Label
Link
ListItem
ListView
LoadingIndicator
Log
MarkdownViewer
Markdown
MaskedInput
OptionList
Placeholder
Pretty
ProgressBar
RadioButton
RadioSet
RichLog
Rule
Select
SelectionList
Sparkline
Static
Switch
TabbedContent
Tabs
TextArea
Toast
Tree
Tree
Table of contents
Example
Reactive Attributes
Messages
Bindings
Component Classes
Tree
label
data
name
id
classes
disabled
BINDINGS
COMPONENT_CLASSES
ICON_NODE
ICON_NODE_EXPANDED
auto_expand
center_scroll
cursor_line
cursor_node
guide_depth
hover_line
last_line
root
show_guides
show_root
NodeCollapsed
control
node
NodeExpanded
control
node
NodeHighlighted
control
node
NodeSelected
control
node
action_cursor_down
action_cursor_next_sibling
action_cursor_parent
action_cursor_parent_next_sibling
action_cursor_previous_sibling
action_cursor_up
action_page_down
action_page_up
action_scroll_end
action_scroll_home
action_select_cursor
action_toggle_expand_all
action_toggle_node
add_json
json_data
node
clear
get_label_width
node
get_node_at_line
line_no
get_node_by_id
node_id
move_cursor
node
animate
move_cursor_to_line
line
animate
process_label
label
render_label
node
base_style
style
reset
label
data
scroll_to_line
line
animate
scroll_to_node
node
animate
select_node
node
unselect
validate_cursor_line
value
validate_guide_depth
value
tree
EventTreeDataType
NodeID
TreeDataType
AddNodeError
RemoveRootError
TreeNode
tree
parent
id
label
data
expanded
allow_expand
allow_expand
children
data
id
is_collapsed
is_expanded
is_last
is_root
label
line
next_sibling
parent
previous_sibling
siblings
tree
add
label
data
before
after
expand
allow_expand
add_leaf
label
data
before
after
collapse
collapse_all
expand
expand_all
refresh
remove
remove_children
set_label
label
toggle
toggle_all
UnknownNodeID
API
API
textual.app
textual.await_complete
textual.await_remove
textual.binding
textual.cache
textual.color
textual.command
textual.constants
textual.containers
textual.compose
textual.content
textual.coordinate
textual.dom
textual.events
textual.errors
textual.filter
textual.fuzzy
textual.geometry
textual.getters
textual.highlight
textual.layout
textual.lazy
textual
textual.logging
textual.map_geometry
textual.markup
textual.message_pump
textual.message
textual.on
textual.pilot
textual.css.query
textual.reactive
textual.renderables
textual.screen
textual.scrollbar
textual.scroll_view
textual.signal
textual.strip
textual.suggester
textual.system_commands
textual.timer
textual.types
textual.validation
textual.walk
textual.widget
textual.work
textual.worker
textual.worker_manager
How To
How To
Center things
Design a Layout
Package a Textual app with Hatch
Render and compose
Style Inline Apps
Save time with Textual containers
FAQ
Roadmap
Blog
Blog
Archive
Archive
2025
2024