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
Section divider with title, description, action, and mineral accent.
No interactive demo is registered for this component yet — the source is shown directly.
import * as React from "react"
import { cn } from "@/lib/utils"
type MineralAccent = "cobalt" | "tanzanite" | "malachite" | "gold" | "terracotta"
interface SectionHeaderProps extends React.ComponentProps<"div"> {
title: string
description?: string
action?: React.ReactNode
mineral?: MineralAccent
}
const MINERAL_LINE_COLORS: Record<MineralAccent, string> = {
cobalt: "bg-mineral-cobalt",
tanzanite: "bg-mineral-tanzanite",
malachite: "bg-mineral-malachite",
gold: "bg-mineral-gold",
terracotta: "bg-mineral-terracotta",
}
function SectionHeader({
className,
title,
description,
action,
mineral,
...props
}: SectionHeaderProps) {
return (
<div
data-slot="section-header" data-portal="https://design.nyuchi.com/components/section-header"
className={cn("flex items-start justify-between gap-4", className)}
{...props}
>
<div className="flex items-start gap-3">
{mineral && (
<div className={cn("mt-1 h-6 w-1 shrink-0 rounded-full", MINERAL_LINE_COLORS[mineral])} />
)}
<div>
<h2 className="text-lg font-semibold">{title}</h2>
{description && <p className="mt-1 text-sm text-muted-foreground">{description}</p>}
</div>
</div>
{action && <div className="shrink-0">{action}</div>}
</div>
)
}
export { SectionHeader, type SectionHeaderProps, type MineralAccent }
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/section-headernpx shadcn@latest add https://mzizi.dev/api/v1/ui/section-headercomponents/ui/section-header.tsx