SourceCard

Displays a cited source link with title, domain, and optional excerpt — used in AI responses with web search grounding.

Installation

terminal
npx aether-ui add source-card

Import

import.tsx
import { SourceCard } from "@aetherstack/ui"

Usage

sourcecard.tsx
<SourceCard
  title="React Documentation"
  url="https://react.dev"
  excerpt="The library for web and native user interfaces."
/>

{/* With favicon */}
<SourceCard
  title="MDN Web Docs"
  url="https://developer.mozilla.org"
  excerpt="Resources for developers, by developers."
  favicon="https://developer.mozilla.org/favicon.ico"
/>

Props

PropTypeDefaultDescription
title*string—Card title — typically the page title of the source.
url*string—Link URL; the domain is extracted and shown below the title.
excerptstring—Short excerpt or description shown below the domain.
faviconstring—Favicon image URL displayed beside the title.
classNamestring—Additional CSS classes.

* Required

Accessibility

  • →The card is rendered as an anchor element — keyboard-navigable and operable with Enter.
  • →Favicon image has alt='favicon for <domain>' for screen readers.