"""A complete DyUI app that shows the `tabs` component.

Save it as app.py, then run:  dyui run app.py
"""
import dyui
from dyui import ui

app = dyui.App(title="Tabs demo", starters=["Show me"], persist=False)


@app.on_message
async def reply(msg: dyui.Message, chat: dyui.Chat):
    yield "Here is the `tabs` component."
    yield ui.Tabs(ui.Tab("Overview", ui.Markdown("A relaxed long weekend.")), ui.Tab("Budget", ui.Stat("Total", "€1,208")))
