Social Media Post
Social media post with author, content, media attachments, and engagement metrics.
social
Install
$ npx shadcn@latest add @open-types/social-media-post
Source
export type SocialMediaAttachmentType = "image" | "video" | "gif" | "link";
export interface SocialMediaAttachment {
type: SocialMediaAttachmentType;
url: string;
alt?: string;
width?: number;
height?: number;
thumbnail_url?: string;
}
export interface SocialMediaAuthor {
id: string;
username: string;
display_name: string;
avatar_url?: string;
verified?: boolean;
}
export interface SocialMediaPost {
id: string;
author: SocialMediaAuthor;
content: string;
created_at: string;
likes?: number;
reposts?: number;
replies?: number;
media?: SocialMediaAttachment[];
url?: string;
}
export type SocialMediaAttachmentType = "image" | "video" | "gif" | "link";
export interface SocialMediaAttachment {
type: SocialMediaAttachmentType;
url: string;
alt?: string;
width?: number;
height?: number;
thumbnail_url?: string;
}
export interface SocialMediaAuthor {
id: string;
username: string;
display_name: string;
avatar_url?: string;
verified?: boolean;
}
export interface SocialMediaPost {
id: string;
author: SocialMediaAuthor;
content: string;
created_at: string;
likes?: number;
reposts?: number;
replies?: number;
media?: SocialMediaAttachment[];
url?: string;
}