Prototype Empty, Loading, and Error States in Replit Agent Design
Canvas lets you compare screen designs before building the full application. A simple task board should still explain what is happening when there are no records or when loading fails.
Worked example
Three states for a small repair board
Design a repair board in three Canvas frames for a mobile layout. Empty: show 'No open repairs' and a 'Report a repair' button. Loading: keep the title visible and reserve list space. Error: show a retry control with the message 'Could not load repairs'. Use fictional data and shared spacing.
Steps
- Open a Canvas in Replit Design and request three frames using the prompt below. Ask Agent to use the same width and layout conventions for each frame.
- Review the empty, loading, and error treatments at narrow and wide widths. Try the recovery action visually and label the frame that needs a real retry behavior.
- Once the layout is accepted, use the build or apply control to move the design into an app. Wire states to real data and check the finished behavior in the running preview.
What to check
- Refresh the running app to check that the loading and error cases are driven by application state. Canvas frames show the proposed layout.
- Check the current plan requirements before converting a design to a full app. Canvas availability and app publishing are separate capabilities.