AppLinkPreview
A card for a link: image, title, description, site name and favicon, from data your app already has (an Open Graph or oEmbed endpoint on your server; the component never fetches or scrapes). The whole card is one link, named by its title alone (aria-labelledby), with the description and site as its description, so a screen reader hears "Getting started with VueTail, link" rather than the whole card. Large puts the image on top; compact is one row with a thumbnail at the end. While loading it shows AppSkeleton in the same layout. An image or favicon that fails to load drops out.
Install: pnpm add-component AppLinkPreview
Large
The image on top. Hover underlines the title; the focus ring goes around the whole card.
Compact
One row for lists and chat. The second card has no image or favicon, so the globe stands in, and it opens in a new tab.
Loading
Pass loading while your endpoint answers. The skeleton keeps the card's size, so nothing below it jumps.
API
url(string): Where the card goes. Its host name stands in for a missing title or site name.title(string): The link's accessible name.description(string): Up to three lines (two in compact), then cut with an ellipsis.image(string): Preview image URL, shown at the Open Graph ratio (1.91:1) in large.imageAlt(string): The image is decorative by default, since the title names the link.siteName(string): The line at the bottom, beside the favicon.favicon(string): Site icon URL. Missing or broken shows a globe glyph.layout('large' | 'compact'): large: the image on top, as a chat unfurl. compact: one row, the thumbnail at the end.loading(boolean): Skeletons in the same layout while your app fetches the metadata.newTab(boolean): Opens in a new tab with rel="noopener noreferrer", and says so to screen readers.newTabLabel(string): What screen readers hear after the title when newTab is set.loadingLabel(string): What screen readers hear while loading.