from shiny import ui ui = ui.nav_panel( "Threads Poster", # Topic input ui.input_text("threads_topic", "Enter Topic", placeholder="e.g. New Anime Drop This Friday"), # Optional blog link ui.input_text("threads_url", "Optional Blog Link", placeholder="https://yourshop.com/blogs/xyz"), # Generate button ui.div( ui.input_action_button("gen_btn_threads", "Generate Threads Post", class_="btn-primary"), class_="mt-3 mb-2" ), # Post output and button ui.output_ui("threads_post_draft"), ui.div( ui.input_action_button("post_btn_threads", "Post to Threads", class_="btn-success"), class_="my-3" ), # Status output ui.output_text("threads_post_status") )