visible= follows a ClientState flag: the placeholder and the article swap in the browser. In an app, the article arrives when its zone re-renders.
Closing the books in three days
How the finance team at Atlas Freight cut its month-end from nine days to three, with one shared checklist and no new software.
classArticle(ClientState):loaded:bool=field(default=False)defloading_then_loaded()->None:loaded=Article().loadedwithui.vstack(gap="md",classes="w-full max-w-md"):withui.card(padding="md"):withui.vstack(gap="sm",visible=loaded):ui.heading("Closing the books in three days",level=3,size="md")ui.text("How the finance team at Atlas Freight cut its ""month-end from nine days to three, with one shared ""checklist and no new software.",color="muted")withui.vstack(gap="sm",visible=~loaded):ui.skeleton(variant="text",width="70%",height="1.5rem")ui.skeleton(variant="text",width="100%")ui.skeleton(variant="text",width="85%")ui.button(loaded.then_else("Show the skeleton","Load the article"),variant="soft",size="sm",on_click=loaded.toggle(),classes="self-center")