Skip to content
Uxelith
Prov1.0.0App screens

Mobile App Shell

The frame of a phone app: a bottom tab bar, a large title that moves into the top bar, screens that slide in with swipe-back, a menu that closes when you pick an item, and a sidebar on wide screens. Each tab keeps its own screens and scroll.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
13 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import { MobileAppShell, useAppShell } from "@/components/mobile-app-shell"

function Trips() {
  const shell = useAppShell()
  return (
    <ul className="grid gap-2 px-4">
      {["Lofoten", "Kyoto", "Porto"].map((trip) => (
        <li key={trip}>
          <button
            type="button"
            className="w-full rounded-xl bg-muted p-4 text-left"
            onClick={() => shell.push({ title: trip, content: <p className="px-4">Plans for {trip}.</p> })}
          >
            {trip}
          </button>
        </li>
      ))}
    </ul>
  )
}

export default function App() {
  return (
    <MobileAppShell
      brand="Nordlys"
      tabs={[
        { value: "trips", label: "Trips", icon: "plane", content: <Trips /> },
        { value: "inbox", label: "Inbox", icon: "inbox", badge: 2, content: <p className="px-4">No new messages.</p> },
        { value: "profile", label: "Profile", icon: "user", content: <p className="px-4">Elena Novak</p> },
      ]}
      menu={[{ label: "Account", items: [{ label: "Settings", icon: "settings", href: "/settings" }] }]}
    />
  )
}

Props

PropTypeDefaultDescription
tabsAppShellTab[]—Tab bar items plus title?, content? (the tab's first screen when the shell holds the screens) and actions?.
value / defaultValue / onValueChangestringfirst tabThe current tab, controlled or not.
brandstring—The app's name, atop the menu and the wide-screen sidebar.
childrenReactNode—With routes: the current page, shown in the current tab.
titlestringtab titleWith routes: the current page's title.
backHref / backLabel / onBackstring / string / () => void—With routes: the parent page. Shows a back button and enables swipe-back.
pathstring—With routes: the pathname. Each tab then remembers the last page opened in it.
actionsReactNode—Buttons at the right of the top bar.
menu{ label?, items: { label, icon?, href?, onSelect?, badge? }[] }[]—Extra places: a menu from the left on phones, the sidebar on wide screens.
look / indicator / labels / actionsee Bottom Tab Barclassic / pill / alwaysPassed to the tab bar.
hideTabBarOnScrollbooleanfalseSlide the tab bar away while a screen scrolls down.
largeTitlebooleantrueFirst screens show a large title that moves into the top bar on scroll.
swipeBackbooleantrueDrag from the left edge to go back.
linkComponentElementType"a"Renders tabs, menu items and back links, e.g. Next.js Link.
headingLevel1 | 211 when the shell is the page; 2 when it sits under another title.
useAppShell(){ push, pop, popToRoot, select, tab, depth }—From inside a tab: open a screen on top ({ title, content, actions? }), go back, or switch tabs.

Accessibility

  • One navigation landmark at a time: the tab bar on phones, the sidebar from 48rem; the current tab has aria-current="page".
  • The menu is a modal dialog: focus moves in and is trapped, Escape, a tap outside or choosing an item closes it, and focus returns to the menu button.
  • A pushed screen takes focus on its title; going back returns focus to what opened it. Screens underneath and tabs out of view are inert.
  • Back buttons say where they go ("Back to Trips"); under prefers-reduced-motion screens change without sliding.

Changelog

  1. v1.0.0Latest

    First release.

More in App screens

All 8 in App screens
  • App screensPro

    Comment Thread

    Replies, emoji reactions, @mentions with suggestions, who is typing, comments that show the moment they are sent, and a thread you can resolve. Works with any server.

  • App screensPro

    Dashboard Shell

    An application frame: a sidebar that folds to an icon rail, a search that grows into a ⌘K command palette, stats with sparklines, a dense revenue chart with a 7/30/90-day range and recent orders with status badges.

  • App screensPro

    File Manager

    A file manager for your own storage: lasso and multi-select, drag to folders or the Trash, right-click menus, rename in place, Quick Look, Undo and uploads with progress, all by keyboard and touch too.