Skip to content
العربية
Navigation

MobileMenu

Full-screen phone menu on a native dialog.

import { MobileMenu } from "@percentsa/ui";

Examples

Shown below 768 px. Narrow the window to try it.

Code
export function MobileMenuExample() {
  const t = useT();
  return (
    <Stack gap={3}>
      <Text size="sm" tone="muted">{t("Shown below 768 px. Narrow the window to try it.", "يظهر تحت 768 بكسل. صغّر النافذة لتجربته.")}</Text>
      <MobileMenu links={useLinks()} footer={<Button>{t("Start a project", "ابدأ مشروعًا")}</Button>} />
    </Stack>
  );
}

type TabRow = { id: string; c: string[] };
const TAB_ROWS: TabRow[] = Array.from({ length: 4 }, (_, i) => ({ id: `INV-${1040 + i}`, c: Array.from({ length: 7 }, (_, k) => `Value ${i + 1}.${k + 1}`) }));