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
Compact note display with title, excerpt, and timestamp.
No interactive demo is registered for this component yet — the source is shown directly.
import * as React from "react"
import { cn } from "@/lib/utils"
const mineralBorders: Record<string, string> = {
cobalt: "border-t-[var(--color-primary, var(--color-cobalt, #00B0FF))]",
tanzanite: "border-t-[var(--color-accent, var(--color-tanzanite, #B388FF))]",
malachite: "border-t-[var(--status-success, var(--color-malachite, #64FFDA))]",
gold: "border-t-[var(--status-warning, var(--color-gold, #FFD740))]",
terracotta: "border-t-[var(--status-error, var(--color-terracotta, #D4A574))]",
}
function NoteCard({ loading = false,
title,
content,
timestamp,
color,
className,
...props
}: {
title: string
content: string
timestamp: string
color?: "cobalt" | "tanzanite" | "malachite" | "gold" | "terracotta"
} & React.ComponentProps<"div">) {
if (loading) return (<div data-slot="note-card" data-portal="https://design.nyuchi.com/components/note-card" data-loading className="animate-pulse rounded-[var(--radius-lg,14px)] bg-card p-4 ring-1 ring-foreground/10 space-y-3"><div className="h-4 w-2/3 rounded bg-muted" /><div className="h-3 w-full rounded bg-muted" /><div className="h-3 w-1/2 rounded bg-muted" /></div>)
return (
<div
data-slot="note-card"
data-color={color}
className={cn(
"flex flex-col gap-2 rounded-[var(--radius-xl,17px)] bg-card p-4 ring-1 ring-foreground/10",
color ? `border-t-4 ${mineralBorders[color]}` : "",
className
)}
{...props}
>
<h4 className="line-clamp-1 text-sm font-medium text-foreground">{title}</h4>
<p className="line-clamp-3 text-sm text-muted-foreground">{content}</p>
<span className="mt-auto text-xs text-muted-foreground">{timestamp}</span>
</div>
)
}
export { NoteCard }
The variants, sizes, and props surfaced by the registry. Each is sourced from the Supabase component_docs table.
Hit the registry API live and see the JSON the shadcn CLI consumes when it installs this component.
/api/v1/ui/note-cardnpx shadcn@latest add https://mzizi.dev/api/v1/ui/note-cardcomponents/ui/note-card.tsx