Social Stream Post
Generated from public Vue/TypeScript exports by
pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commitfc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.
SocialStreamPost
import { SocialStreamPost } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
post | SocialStreamPostData | Required | — |
user | SocialStreamAttendee | undefined | — | — |
showIdentity | boolean | undefined | true | — |
showTimestamp | boolean | undefined | true | — |
showDownloadButton | boolean | undefined | false | — |
useOverlay | boolean | undefined | false | — |
Examples
These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
ImagePost
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import SocialStreamPost from './SocialStreamPost.vue'
import type { SocialStreamPostData } from './SocialStreamPost.vue'
const defaultArgs = {
showIdentity: true,
showTimestamp: true,
showDownloadButton: false,
useOverlay: false,
}
{
args: {
post: imagePost,
},
render: (args) => ({
components: { SocialStreamPost },
setup() {
return { args }
},
template: '<SocialStreamPost v-bind="args" class="rounded-lg border bg-card" />',
}),
}
VideoPost
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import SocialStreamPost from './SocialStreamPost.vue'
import type { SocialStreamPostData } from './SocialStreamPost.vue'
const defaultArgs = {
showIdentity: true,
showTimestamp: true,
showDownloadButton: false,
useOverlay: false,
}
{
args: {
post: videoPost,
},
render: (args) => ({
components: { SocialStreamPost },
setup() {
return { args }
},
template: '<SocialStreamPost v-bind="args" class="rounded-lg border bg-card" />',
}),
}
TextOnly
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import SocialStreamPost from './SocialStreamPost.vue'
import type { SocialStreamPostData } from './SocialStreamPost.vue'
const defaultArgs = {
showIdentity: true,
showTimestamp: true,
showDownloadButton: false,
useOverlay: false,
}
{
args: {
post: textPost,
},
render: (args) => ({
components: { SocialStreamPost },
setup() {
return { args }
},
template: '<SocialStreamPost v-bind="args" class="rounded-lg border bg-card" />',
}),
}
SocialStreamPostBody
import { SocialStreamPostBody } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
post | SocialStreamPostData | Required | — |
showDownloadButton | boolean | undefined | false | — |
useOverlay | boolean | undefined | false | — |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
error | [error: Error] | — | — |
Examples
These are authored Storybook examples. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Composition
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { SocialStreamPostBody } from './index'
{ render: () => ({ components: { SocialStreamPostBody }, setup: () => ({ post: { id: 'demo', created_at: '2026-10-13T12:00:00Z', file_path_mime: 'image/svg+xml', file_url: 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 240%22%3E%3Crect width=%22400%22 height=%22240%22 fill=%22%231746b0%22/%3E%3Ctext x=%22200%22 y=%22120%22 text-anchor=%22middle%22 fill=%22white%22 font-size=%2224%22%3EDemo media%3C/text%3E%3C/svg%3E' } }), template: `<SocialStreamPostBody :post="post" class="max-w-sm" />` }) }