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
Grid of quick action buttons with icon and label. Extracted from wallet-page and console-dashboard-page.
No interactive demo is registered for this component yet — the source is shown directly.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
interface QuickAction { label: string; icon: React.ReactNode; onClick: () => void; disabled?: boolean }
interface QuickActionGridProps { actions: QuickAction[]; className?: string }
export function QuickActionGrid({ actions, className }: QuickActionGridProps) {
return (
<div data-slot="quick-action-grid" data-portal="https://design.nyuchi.com/components/quick-action-grid" role="group" aria-label="Quick actions" className={cn("flex gap-3 overflow-x-auto", className)}>
{actions.map((a, i) => (
<button key={i} onClick={a.onClick} disabled={a.disabled}
className={cn("flex min-h-[48px] min-w-[72px] flex-1 flex-col items-center gap-1 rounded-[var(--radius-lg,14px)] bg-card p-3 text-xs font-medium border border-border transition-colors", a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-muted cursor-pointer", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary")}>
{a.icon}<span>{a.label}</span>
</button>
))}
</div>
)
}
export type { QuickAction, QuickActionGridProps }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/quick-action-gridnpx shadcn@latest add https://mzizi.dev/api/v1/ui/quick-action-grid