Skip to content

CitationCard

stable

Data source citation with type icon, inline freshness timestamp, and stale indicator (DAN-17)

Conversation/Storybook ↗
import { CitationCard } from "@danagraph/design-system/patterns"
Loading demo…

Props

sourcerequired
Type stringDefault —

Source name (document / table / endpoint / agent)

sourceType
Type 'document'|'database'|'api'|'agent'Default —

Determines icon; defaults to document

lastUpdatedAt
Type stringDefault —

ISO timestamp — displayed inline, never in a tooltip

stale
Type booleanDefault —

Override stale detection; shows validation gold border

staleThresholdHours
Type numberDefault —

Hours above which data is auto-detected as stale (default: 24)

chunk
Type stringDefault —

Source excerpt shown on expand

confidence
Type numberDefault —

Confidence score 0–1

href
Type stringDefault —

Direct link to source

semantictypebordersurface
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?