BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aurora/aurora-ai-sources

Aurora AI Sources

aurora-dinglebear-ai/aurora-ai-sources
FreeBlock

Aurora-native sources parity surface from AI Elements.

Install it

npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-sources.json

Source

registry/aurora/blocks/ai/elements/sources.tsxaurora.dinglebear.ai/r/aurora-ai-sources.json
1"use client"
2
3import * as React from "react"
4import { ChevronDown, FileText } from "lucide-react"
5import { Badge } from "@/registry/aurora/ui/badge"
6import { Button } from "@/registry/aurora/ui/button"
7import { Source, type SourceItem, type SourceProps } from "@/registry/aurora/blocks/ai/elements/source"
8
9// ---------------------------------------------------------------------------
10// Types (architecture source of truth — keep the existing registry API)
11// ---------------------------------------------------------------------------
12
13export interface SourcesProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
14 title?: React.ReactNode
15 /** Render the count badge + chevron and allow the body to collapse. */
16 collapsible?: boolean
17 /** Control the collapsed state (uncontrolled defaults to expanded). */
18 open?: boolean
19 defaultOpen?: boolean
20 onOpenChange?: (open: boolean) => void
21}
22
23export type { SourceItem, SourceProps }
24
25// ---------------------------------------------------------------------------
26// Shared surface helpers (ported from CD injected CSS)
27// ---------------------------------------------------------------------------
28
29function panelStyle(style?: React.CSSProperties): React.CSSProperties {
30 return {
31 background: "var(--aurora-surface-raised)",
32 border: "1px solid var(--aurora-border-strong)",
33 borderRadius: "var(--aurora-radius-1)",
34 boxShadow: "var(--aurora-shadow-medium), var(--aurora-highlight-medium)",
35 ...style,
36 }
37}
38
39
40// ---------------------------------------------------------------------------
41// Count badge — small neutral pill next to the title
42// ---------------------------------------------------------------------------
43
44function CountBadge({ count }: { count: number }) {
45 return (
46 <Badge
47 tone="neutral"
48 fill="outline"
49 className="min-w-[22px] justify-center px-1.5 tabular-nums"
50 >
51 {count}
52 </Badge>
53 )
54}
55
56// ---------------------------------------------------------------------------
57// Sources — bordered panel with file icon, title, count badge, collapsible body
58// ---------------------------------------------------------------------------
59
60const Sources = (
61 { ref,
62 className,
63 title = "Sources",
64 collapsible = false,
65 open: openProp,
66 defaultOpen = true,
67 onOpenChange,
68 style,
69 children,
70 ...props
71 }: SourcesProps & { ref?: React.Ref<HTMLDivElement> }
72 ) => {
73// … truncated

What it pulls in

npm packages

  • lucide-react@^0.487.0

Other registry items

  • @aurora/aurora-tokens
  • @aurora/aurora-ai-elements
  • @aurora/aurora-badge
  • @aurora/aurora-button
  • @aurora/aurora-ai-source

Files it writes

  • registry/aurora/blocks/ai/elements/sources.tsx

Facts

Registry
aurora
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

aurora.dinglebear.ai dinglebear-ai/aurora on GitHub Raw registry item This item as JSON

More from aurora

All 176 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora AI Actionaurora-ai-actionauroraBlocksFree1 dep
Aurora AI Actionsaurora-ai-actionsauroraBlocksFree1 dep
Aurora AI Agentaurora-ai-agentauroraBlocksFree1 dep
Aurora AI Image Gridaurora-ai-ai-image-gridauroraBlocksFree1 dep
Aurora AI Attachmentsaurora-ai-attachmentsauroraBlocksFree1 dep
Aurora AI Audio Playeraurora-ai-audio-playerauroraBlocksFree1 dep
Aurora AI Branchaurora-ai-branchauroraBlocksFree1 dep
Aurora AI Canvasaurora-ai-canvasauroraBlocksFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex