# tui/focused-panel
Tag string of the currently focused panel, or `nil` if no tag is set.
## Syntax
[tui/focused-panel]
## Returns
string or nil
## Notes
- Returns the panel's stable string tag (set via `tui/tag` or `tui/auto-tag`).
- Returns `nil` if the focused panel has no tag or if there is no focused panel.
- Breaking change: This function previously returned a numeric panel ID.
Use `tui/self` to get the calling panel's numeric ID for internal routing.