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*stringCard title — typically the page title of the source.
url*stringLink URL; the domain is extracted and shown below the title.
excerptstringShort excerpt or description shown below the domain.
faviconstringFavicon image URL displayed beside the title.
classNamestringAdditional 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.