nyuchimzizi
Mzizi — an open-architecture project of the Bundu Foundation, operated and developed by Nyuchi. Built on the Five African Minerals palette.
Built by Nyuchi Africav4.0.39
Health dashboard page. Vitals overview, activity rings, medication reminders, upcoming appointments, health score. Competitors: Apple Health, MyFitnessPal, Babylon.
View the full component source code below.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { useNyuchiHarness } from "@/lib/harness"
interface HealthDashboardPageProps { vitals?: React.ReactNode; activity?: React.ReactNode; medications?: React.ReactNode; appointments?: React.ReactNode; children?: React.ReactNode; loading?: boolean; className?: string }
export function HealthDashboardPage({ vitals, activity, medications, appointments, children, loading = false, className }: HealthDashboardPageProps) {
const { log, motion, LiveRegion } = useNyuchiHarness("health-dashboard-page")
const animStyle = React.useMemo(() => motion.prefersReduced ? {} : { animation: `nyuchi-fade-slide-up ${motion.enterDuration}ms ${motion.enterEasing} both` }, [motion])
if (loading) return <main data-slot="health-dashboard-page" data-portal="https://design.nyuchi.com/components/health-dashboard-page" data-loading role="main" className="p-4 space-y-4 animate-pulse"><div className="h-8 w-1/3 rounded bg-muted" /><div className="grid grid-cols-2 gap-3">{[1,2,3,4].map(i=><div key={i} className="h-24 rounded-[var(--radius-lg,14px)] bg-muted" />)}</div><div className="h-48 rounded-[var(--radius-lg,14px)] bg-muted" /></main>
return (
<main data-slot="health-dashboard-page" role="main" aria-label="Health Dashboard" style={animStyle} className={cn("flex flex-col gap-4 p-4", className)}>
<h1 className="text-xl font-bold">Health</h1>
{vitals && <section aria-label="Vitals">{vitals}</section>}
{activity && <section aria-label="Activity">{activity}</section>}
{medications && <section aria-label="Medications">{medications}</section>}
{appointments && <section aria-label="Appointments">{appointments}</section>}
{children}
</main>
)
}
export type { HealthDashboardPageProps }npx shadcn@latest add https://mzizi.dev/api/v1/ui/health-dashboard-pageFetch this component's metadata and source code from the registry API.
/api/v1/ui/health-dashboard-page