@brickslab./ui-web
Data-driven social media post card component. Supports X, LinkedIn, and custom platforms with optional media, metrics, and glassmorphism variant. Perfect for testimonials, posts, and social feeds.
Aperçu
X/Twitter Style
LinkedIn Style with Custom Platform
Glassmorphism Variant
Compact (No Metrics)
Props Table
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
author | object: { name, handle?, avatarUrl?, url? } | — | ✓ | Author information including name, optional handle, avatar, and profile URL. |
content | string | — | ✓ | Post content/text. |
platform | "x" | "linkedin" | "custom" | "custom" | — | Social platform indicator. Determines icon display. |
date | string | Date | — | — | Post date (auto-formatted if Date object). |
media | array: { type, src, alt? }[] | — | — | Array of images or videos attached to post. |
metrics | object: { likes?, reposts?, replies? } | — | — | Engagement metrics displayed at bottom. |
href | string | — | — | Link to original post. Renders as anchor if provided. |
variant | "glass" | "solid" | "solid" | — | Styling variant: glassmorphism or solid background. |
Override rapide
Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.
<MyComponent
author={...}
content="..."
platform="custom"
date="..."
media={[]}
metrics={...}
href="..."
variant="solid"
/>authorcontentplatformdatemediametricshrefvariant