Is there a better way to rename tabs?

import panel as pn
pn.extension()

tabs = pn.Tabs(("a", 3), ("b", 4))
tabs[0] = ("b", tabs[0])
tabs

I want to do something like:

import panel as pn
pn.extension()

title = pn.widgets.TextInput(value="ABC")
tabs = pn.Tabs((title.param.value, 3), ("b", 4))
tabs

I was hoping that the following would work but it does not update:

title = pn.widgets.TextInput(value="ABC")
tabs = pn.Tabs(pn.Row('Hey', name=title))
1 Like