Aurora AI Suggestion
aurora-dinglebear-ai/aurora-ai-suggestionFreeBlock
Aurora-native suggestion parity surface from AI Elements.
Install it
npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-suggestion.jsonSource
1"use client"23/**4 * Aurora Suggestion — suggested next steps as a stack of selectable actions.5 *6 * Each option renders as a full-width Aurora `Button` (neutral lit-outline) with7 * a cyan-tinted border + surface so the group reads as "pick one of these8 * suggested paths". Visual values are ported 1:1 from the Claude Design source:9 * 10px radius, `accent-primary 18%` border tint over the default border, an10 * `accent-primary 4%` wash over the medium panel, left-aligned title + optional11 * meta description + optional badge.12 *13 * Architecture stays shadcn: typed `SuggestionOption[]` API, `forwardRef`,14 * `displayName`, `React.memo`, and the existing `onClick`/`disabled` escape15 * hatches. Built on the Aurora `Button` (Radix `Slot`/cva) and `Badge`.16 */1718import * as React from "react"19import { Lightbulb } from "lucide-react"20import { cn } from "@/lib/utils"21import { Badge } from "@/registry/aurora/ui/badge"22import { Button } from "@/registry/aurora/ui/button"2324export interface SuggestionOption {25 id: string26 title: string27 description?: string28 badge?: string29}3031export interface SuggestionProps32 extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick"> {33 options?: SuggestionOption[]34 disabled?: boolean35 onClick?: React.MouseEventHandler<HTMLButtonElement>36}3738const Suggestion = ({ ref, className, style, options, children, onClick, disabled, ...props }: SuggestionProps & { ref?: React.Ref<HTMLDivElement> }) => (39 <div40 ref={ref}41 className={cn("grid gap-2", className)}42 style={{ width: "100%", minWidth: 0, ...style }}43 {...props}44 >45 {(46 options ?? [47 {48 id: "default",49 title: typeof children === "string" ? children : "Suggested Next Step",50 },51 ]52 ).map((option) => (53 <Button54 key={option.id}55 type="button"56 variant="neutral"57 disabled={disabled}58 onClick={onClick}59 iconLeft={<Lightbulb aria-hidden />}60 className="h-auto min-w-0 justify-start whitespace-normal rounded-[10px] border px-3 py-3 text-left"61 style={{62 borderColor:63 "color-mix(in srgb, var(--axon-orange) 24%, var(--aurora-border-default))",64 background:65 "color-mix(in srgb, var(--axon-orange) 6%, var(--aurora-panel-medium))",66 color: "var(--aurora-text-primary)",67 }}68 >69 <span className="grid min-w-0 gap-1">70// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora AI Actionaurora-ai-action | aurora | Blocks | Free | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Free | 1 dep | |
| Aurora AI Agentaurora-ai-agent | aurora | Blocks | Free | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Free | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Free | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Free | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Free | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Free | 1 dep |
