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
Scrollable prompt chips for AI conversations.
View the full component source code below.
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
function SuggestedPrompts({
className,
prompts,
onSelect,
...props
}: React.ComponentProps<"div"> & {
prompts: string[]
onSelect?: (prompt: string) => void
}) {
return (
<div
data-slot="suggested-prompts" data-portal="https://design.nyuchi.com/components/suggested-prompts" role="group" aria-label="Suggested prompts"
className={cn("scrollbar-none flex gap-2 overflow-x-auto pb-1", className)}
{...props}
>
{prompts.map((prompt) => (
<button
key={prompt}
onClick={() => onSelect?.(prompt)}
className="inline-flex shrink-0 items-center rounded-full border border-border bg-input/30 px-3 py-1.5 text-sm text-foreground transition-colors hover:bg-input/50 hover:text-foreground"
>
{prompt}
</button>
))}
</div>
)
}
export { SuggestedPrompts }
npx shadcn@latest add https://mzizi.dev/api/v1/ui/suggested-promptsFetch this component's metadata and source code from the registry API.
/api/v1/ui/suggested-promptscomponents/ui/suggested-prompts.tsx