Skip to content

Mobile-first · React

Mobile app shell

A phone-first layout with a sticky top bar, four tab screens, and a bottom navigation bar.
Starter screenshot captured from this template's own build at 1440×900, plus a 390px phone capture. It shows the template as it ships, not output generated from a prompt.

What you get

Designed at 360–430px first and framed as a phone on larger screens. Includes a bottom tab bar with aria-current, safe-area insets for installed web apps, and four example screens (home cards, a search list, an activity feed and a profile with accessible switches). No router dependency — tabs are component state.

Files, exactly as copied.

Exactly what is copied into a new project: 13 files, nothing generated.

Raw data: GET /api/v1/templates/vite-react-mobile-shell

src/screens/Home.tsx
src/screens/Home.tsx
const upNext = [  { time: "09:30", title: "Stand-up", tone: "bg-orange-500" },  { time: "12:00", title: "Lunch with Priya", tone: "bg-amber-400" },  { time: "15:00", title: "Design review", tone: "bg-pink-500" },]; export function Home() {  const done = 3;  const total = 5;  const r = 34;  const c = 2 * Math.PI * r;  return (    <div className="space-y-4">      <p className="text-sm text-slate-500">Good morning. Here is your day.</p>      <section className="flex items-center gap-5 rounded-3xl bg-gradient-to-br from-orange-600 to-orange-600 p-5 text-white shadow-lg shadow-orange-600/20">        <svg viewBox="0 0 80 80" className="h-20 w-20 -rotate-90" aria-hidden="true">          <circle cx="40" cy="40" r={r} fill="none" stroke="rgb(255 255 255 / 0.2)" strokeWidth="8" />          <circle cx="40" cy="40" r={r} fill="none" stroke="white" strokeWidth="8" strokeLinecap="round" strokeDasharray={c} strokeDashoffset={c * (1 - done / total)} />        </svg>        <div>          <h2 className="text-lg font-semibold">Today</h2>          <p className="text-sm text-orange-100">            {done} of {total} tasks done · 1 meeting at 15:00          </p>        </div>      </section>      <section className="rounded-3xl border border-slate-100 bg-slate-50 p-4">        <h2 className="text-sm font-semibold">Up next</h2>        <ul className="mt-3 space-y-2">          {upNext.map((e) => (            <li key={e.title} className="flex items-center gap-3 rounded-2xl bg-white p-3 shadow-sm">              <span className={"h-8 w-1 rounded-full " + e.tone} />              <span className="w-12 text-xs tabular-nums text-slate-500">{e.time}</span>              <span className="text-sm font-medium">{e.title}</span>            </li>          ))}        </ul>      </section>      <section className="grid grid-cols-2 gap-3">        <div className="rounded-3xl bg-amber-50 p-4">          <p className="text-xs text-amber-700">Weather</p>          <p className="mt-1 text-2xl font-semibold">24°</p>          <p className="text-xs text-amber-800/70">Replace with a weather API</p>        </div>        <div className="rounded-3xl bg-emerald-50 p-4">          <p className="text-xs text-emerald-700">Tip</p>          <p className="mt-1 text-sm font-medium leading-snug text-emerald-900">Ask Codexa to add a new tab or screen.</p>        </div>      </section>      <button type="button" className="w-full rounded-2xl bg-slate-900 py-3.5 text-sm font-medium text-white active:bg-slate-700">        Primary action      </button>    </div>  );}

Remix

Remix this template.

Describe what to change and the agent starts from Mobile app shell's files. The box is already started for you: finish “Start from Mobile app shell and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Vite + React + TypeScript, so installs are fast.

  • react^19.1.0
  • react-dom^19.1.0
  • vite^6.3.0
  • @vitejs/plugin-react^4.4.0
  • tailwindcss^4.1.0
  • @tailwindcss/vite^4.1.0
  • typescript^5.8.0

How it runs

Framework
Vite + React + TypeScript
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
5173
Entry route
/

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on Mobile app shell

Create a free account, start from this template, and ask the AI agent to turn it into your app.