Stores
109 active
The standard body of an app page: its header, then its sections.
import { Page } from "@sagui/ui";<Page> so the title, padding and spacing match across apps.width="contained".h1 or outer padding around a Page. It already has both.Install the package and import the styles once. The installation guide covers the Tailwind setup.
$ npm install @sagui/uiimport { Page, MetricCard } from "@sagui/ui";
export default function DashboardPage() {
return (
<Page title="Dashboard" description="Convenience store master data overview">
<div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
<MetricCard label="Stores" value={10} context="9 active" />
</div>
</Page>
);
}Page renders a PageHeading and stacks its children with a gap-6, inside p-4 (p-6 from 640px). Pass filters or the page's one primary Button as actions.
Page is one half of the frame every SagUI app shares. The other half is the AppShell, set up the same way in each app:
<AppShell
variant="inset"
background="dots"
nav={nav}
currentHref={pathname}
linkComponent={Link}
brand={<Select label="Team" value={team} options={teams} onValueChange={setTeam} />}
brandMark={<TeamMark />}
header={
<AppTopBar
breadcrumb={<Breadcrumb items={crumbs} linkComponent={Link} />}
search={<SearchTrigger onOpen={() => setSearching(true)} />}
alerts={<NotificationCenter notifications={notifications} label="Alerts" />}
user={<UserMenu user={user} theme={theme} onThemeChange={setTheme} />}
/>
}
>
{children}
</AppShell>h1. Give sections inside the page h2 headings, or use Cards, which title themselves.div. AppShell already provides the main landmark and the skip link target.Convenience store master data overview
9 active
25 suppliers
All 10 stores · Sep 6 to Oct 5, 2026
vs previous 30 days