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.
View the full component source code below.
"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 }npx shadcn@latest add https://mzizi.dev/api/v1/ui/quick-action-gridFetch this component's metadata and source code from the registry API.
/api/v1/ui/quick-action-grid