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

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

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


@app.on_message
async def reply(msg: dyui.Message, chat: dyui.Chat):
    yield "Here is the `carousel` component."
    yield ui.Carousel(ui.Card("One"), ui.Card("Two"), ui.Card("Three"))
