InterfacePreviewCard

Represents a rich preview card that is generated using OpenGraph tags from a URL.

interface PreviewCard {
    authorName?: null | string;
    authors: PreviewCardAuthor[];
    authorUrl?: null | string;
    blurhash: string;
    description: string;
    embedUrl: string;
    height?: null | number;
    html?: null | string;
    image?: null | string;
    language?: string;
    providerName?: null | string;
    providerUrl?: null | string;
    title: string;
    type: PreviewCardType;
    url: string;
    width?: null | number;
}

Hierarchy (view full)

Properties

authorName?: null | string

The author of the original resource.

Use authors instead

Fediverse account of the authors of the original resource.

authorUrl?: null | string

A link to the author of the original resource.

Use authors instead

blurhash: string

Blurhash

description: string

Description of preview.

embedUrl: string

Used for photo embeds, instead of custom html.

height?: null | number

Height of preview, in pixels.

html?: null | string

HTML to be used for generating the preview card.

image?: null | string

Preview thumbnail.

language?: string
providerName?: null | string

The provider of the original resource.

providerUrl?: null | string

A link to the provider of the original resource.

title: string

Title of linked resource.

The type of the preview card.

url: string

Location of linked resource.

width?: null | number

Width of preview, in pixels.