Mobile App Home React block for Tailwind CSS v4
v1.1.0Updated in 1.3.0
A React mobile app home screen for a marketplace: large title, search, stories, quick actions, recommended ads, feed tabs and a tab bar.
Scroll and the large title "Home" hands over to a compact glass bar; the feed tabs stick under it. Pull down at the top (touch, or a trackpad scroll up) and the iOS spinner refreshes "For you" with a haptic tick and a fade. Tap the search field: the page swaps to your recent searches (tap one to search it again, x removes it, Clear all clears them), typing filters every ad by title and place, Enter saves the query and calls onSearch, Cancel or Escape closes the search. Tap a story circle to open its full-height sheet with three new ads and See all; the ring turns gray once seen (drag the handle down, tap outside, the close button or Escape to close). Quick action tiles and the bell are links with count badges. Recommended ads sit in a 2-column grid: Show more reveals the next row in place, See all opens the full list, and a heart saves an ad (shared between the grid and the feed). Switch For you, Nearby and Following by tapping, swiping the list sideways or with the arrow keys on the tabs; Load more shows the next page. The bottom tab bar hides while you scroll down and comes back on scroll up; Search focuses the search, Home scrolls back to the top and the raised Post button posts an ad. On a desktop the app is a centered 440px column on a gray backdrop.
Mobile App Home is a Pro React block in the React blocks category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add mobile-app-home, together with Avatar, Badge, Bottom Tab Bar, Button, Drawer and 18 more and the npm packages motion and lucide-react.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add mobile-app-homeMobile App Home is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import MobileAppHome from @/components/blocks/mobile-app-home.
// app/(app)/page.tsx
"use client"
import Link from "next/link"
import { useRouter } from "next/navigation"
import { MobileAppHome } from "@/components/blocks/mobile-app-home"
export default function HomePage() {
const router = useRouter()
return (
<MobileAppHome
linkComponent={Link}
subtitle="Hi, Emma"
notificationsCount={3}
messagesCount={2}
onSearch={(query) => router.push(`/search?q=${encodeURIComponent(query)}`)}
onRefresh={() => router.refresh()}
/>
)
}Props
titledefault"Home"ReactNodeThe large title; it shrinks into the bar as you scroll.
subtitledefault"Hi, Emma"ReactNodeThe line under the large title.
storiesAppStory[]Story circles { id, label, image?, icon?, seen?, href?, description?, ring?, listings? }; [] hides the rail. Defaults to MOBILE_APP_HOME_SAMPLE.stories (Deals, Bikes, Phones, Homes, Daniel Reed, Greenleaf).
quickActionsAppQuickAction[]Up to 8 tiles { id, label, icon, href?, badge?, onSelect? } in a 4-column grid; [] hides them. Defaults to Post an ad, Favorites (4), Saved searches (2), My orders.
recommendedListingData[]The 2-column grid of ad cards; [] hides it. Defaults to MOBILE_APP_HOME_SAMPLE.recommended (the 8 canonical ads).
feedsPartial<Record<"for-you" | "nearby" | "following", ListingData[]>>The ads of each tab, merged over MOBILE_APP_HOME_SAMPLE.feeds (20 each); an empty array shows the tab's empty state.
recentSearchesAppRecentSearch[]{ id, query } rows shown while the search is open; defaults to MOBILE_APP_HOME_SAMPLE.recentSearches.
user{ name: string; avatar?: string }The signed-in person shown as the avatar in the header; defaults to Emma Carter.
hrefsPartial<MobileAppHomeHrefs>Where the bell, avatar, Messages, Post, See all and the empty state's action go (notifications, account, messages, add, recommended, discover).
labelsPartial<MobileAppHomeLabels>Every visible string (Romanian by default, DEFAULT_MOBILE_APP_HOME_LABELS); MOBILE_APP_HOME_LABELS_EN is the English set. Nested listingCard, pullToRefresh, swipeableTabs and list pass strings to the composed items.
tab"for-you" | "nearby" | "following"Controlled feed tab; pair it with onTabChange.
defaultTabdefault"for-you""for-you" | "nearby" | "following"The feed tab the screen opens on while uncontrolled.
onTabChange(tab: MobileAppHomeTab) => voidCalled when a tab is tapped or swiped to.
defaultStorydefault""stringThe id of a story whose sheet is open on mount; empty for none.
notificationsCountdefault3numberThe count on the bell; 0 hides the badge.
messagesCountdefault2numberThe count on the Mesaje tab; 0 hides it.
showStoriesdefaulttruebooleanThe story circles rail.
showQuickActionsdefaulttruebooleanThe grid of quick action tiles.
showRecommendeddefaulttruebooleanThe recommended ads grid.
recommendedCountdefault4numberRecommended ads shown at first; Show more adds this many again until all are shown.
pullToRefreshdefaulttruebooleanPull down at the top to refresh the feed (off while searching or loading).
refreshShortcutdefault""stringA key combo in mod+k notation that refreshes the feed like a pull; none by default.
tabBardefaulttruebooleanThe bottom tab bar with the raised Post action.
tabBarVariantdefault"bar""bar" | "floating"A full-width glass bar on the bottom edge, or a floating glass pill.
desktopdefault"column""column" | "full"column: from 768px the app is a centered 440px column on a gray backdrop. full: it stretches (a real PWA on a tablet).
pageSizedefault8numberAds per page of a feed; Load more shows the next page.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"Unseen story rings, the active tab, the tab bar's active color and raised action, and the text actions.
loadingdefaultfalsebooleanSkeleton story circles, tiles, cards and rows in the real layout.
animateIndefaulttruebooleanSections rise in once on mount; off in thumbnails and under reduced motion.
localedefault"en-US"stringIntl locale for prices, distances, times and counts.
currencydefault"USD"stringThe currency of ads that do not set their own.
nowdefault"useNow()"Date | numberThe clock for "Today at 2:32 PM"; pass it for stable renders (the demo uses Sep 24, 2026 4:40 PM).
onRefresh() => (void | Promise<unknown>)The pull to refresh; the spinner runs until it settles. Without it the feed reshuffles after 1,2 s.
onSearch(query: string) => voidEnter in the search field; the query is also added to the recent searches.
onStoryOpen(story: AppStory) => voidA story circle was tapped (its sheet opens and it turns seen).
onFavoriteChange(listing: ListingData, favorite: boolean) => (void | Promise<unknown>)A heart was toggled; a rejected promise rolls it back.
onLoadMore(tab: MobileAppHomeTab) => (void | Promise<unknown>)Load more; the button spins until it settles, then the next page shows. Simulated (900 ms) without it.
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for every link on the screen (next/link in an app).
classNamestringClasses for the app column.
classNamesPartial<Record<MobileAppHomeSlot, string>>Classes for backdrop, header, search, stories, story, actions, recommended, feed and tabBar.
Parts
mobileAppHomeContent
functionMaps a sample (stories and quick actions with icon names) to the block's props with real icons. Spread its result on MobileAppHome.
DEFAULT_MOBILE_APP_HOME_LABELS
constantEvery English string of the home screen: title, search, sections, feed tabs, tab bar and refresh. Spread it and override what you translate.
MOBILE_APP_HOME_LABELS_EN
constantAn alias of DEFAULT_MOBILE_APP_HOME_LABELS, kept so older imports keep working.
createMobileAppHomeSample
functionBuilds the demo content: stories, quick actions, recommended ads, the For you, Nearby and Following feeds, recent searches and badge counts.
MOBILE_APP_HOME_SAMPLE
constantThe demo content built once by createMobileAppHomeSample. Replace it with data from your API.
MOBILE_APP_HOME_SAMPLE_EN
constantThe same demo content under its older name, kept so existing imports keep working.
shuffleFeed
functionReorders a feed in a stable way per round, so pull to refresh shows new items in the same order on every device.
mulberry32
functionA tiny seeded random number generator, so the sample is the same on the server and the client.
MOBILE_APP_HOME_NOW
constantThe fixed "now" of the sample (September 24, 2026, 4:40 PM) that ad ages are measured from.
Examples
Nearby
Opens on the Nearby tab: ads around the Pearl District, closest first, with their distance.
A story open
The Bikes story sheet, full height: three new ads and a See all action.
Floating tab bar, brand
tabBarVariant floating with tone brand: story rings, tabs, the raised action and the links in orange.
Loading
Skeleton story circles, action tiles, cards and rows in the real layout.
Empty following tab
No followed sellers yet: the Following tab shows its empty state with one action.
British English
Locale en-GB with prices in euro: dates, distances and counts follow the locale.
Dependencies
Files
- components/blocks/mobile-app-home.tsx
- components/blocks/mobile-app-home-data.ts
FAQ
Is the React Mobile App Home block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Mobile App Home?
Run npx wingo-ui@latest add mobile-app-home. It also adds the Wingo UI items it builds on (Avatar, Badge, Bottom Tab Bar, Button, Drawer and 18 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/mobile-app-home.
See also
More React blocks
Articles using this component
- Nextjs PWA Without next-pwa: Offline Page and App Shell
Mobile UI in React12 min read