Product Feature Research

Viewport Toggle Bar

The problem

Users building mobile + web need to preview at different viewport sizes without leaving the workspace. They also need to toggle between "run the app" and "see the code." All of this should be one click, not a menu dive.

Observed implementations

Anything.com

Icon row in the top header, left of center: - ๐Ÿ‘ Preview - ` Code -๐Ÿ’ปDesktop viewport -๐Ÿ“ฑMobile viewport -โŸณ` Refresh

Persistent across all project subviews (settings, version history, etc.).

Replit

Tabs inside the preview pane header: - Preview (rendered app) - Sub-tabs for specific pages/screens (e.g., Invoice Dashboard, Database) - Canvas appears as a tab when available โ€” peer to preview, not nested under it.

Different philosophy: Anything's toggles are global (change the view mode); Replit's tabs are content-specific (switch what you're looking at).

Components

Component Anything Replit
Icon-only toggle buttons โœ“ โœ— (uses text tabs)
Text tabs โœ— โœ“
Desktop/mobile viewport switches โœ“ explicit icons โœ— (handled elsewhere)
Manual refresh button โœ“ Typically auto-updating

Analysis

๐Ÿ’ญ

Anything's icon-only bar is more Wix/Framer-like โ€” visual, button-dense, assumes users want fast mode switches. Replit's tab-based model is more IDE-like โ€” named destinations, assumes users think in terms of "which page am I on."

Neither is wrong; they serve different mental models. Makers browse; developers navigate.

Sources