newOS for Developers
Back to Overview
Post
outputcorePlaygroundCore post display component for rendering content items with media, voting, and actions.
Source Path
apps/web/Components/Model/post/Post.tsxPackage
@newos/web
Props Interface
Post: IOView<{
id: string; // Post ID
folderId?: string; // Parent folder/mood ID
enableVote?: boolean; // Show voting controls
showReasoning?: boolean; // Show AI reasoning
mediaContentMode?: string; // Media display mode
card?: boolean; // Card layout mode
compact?: boolean; // Compact display
}>Data Flow & API Calls
readPost({ id }) — Fetches post data by IDvotePost() — Submit vote on postattachToFolder() — Add post to folderKey Features
Media Rendering
Uses MediaComponent for images, videos, and text content.
Voting System
Integrated vote buttons with real-time updates.
AI Reasoning
Optional display of AI thinking and claims.
Edge Cases & Gotchas
folderId required — Many actions require parent folder context
Media lazy loading — Images load on scroll into view