Examples
Loading
With Social Proof
Creator
Without Media
Generic
Props
ChatEmbed
A card embedded in a chat thread that links out to a creator profile or a fan experience such as a live stream or game. Media fills the card and the profile row sits on a blurred scrim along the bottom edge. Thecreator variant is 160px tall and the experience variant 239px; both fill their container up to 400px wide. Pass href (or onOpen) to make the whole card clickable; the action stays separately clickable above it. Use ChatEmbedSkeleton while the embed’s data loads and ChatEmbedUnavailable when the shared item no longer exists.
Give media meaningful alt text when it conveys content, or alt="" when the title already describes it. When media is a video with verticalMedia, pass its poster frame as mediaBackdrop so the video is not decoded twice. socialProof is shown to everyone in the chat, so prefer a count over naming other fans.
Action at the end of the profile row, typically a
Button with variant="white" and size="32".Not available with
href. Makes the whole card a button named by the title, e.g. to open a dialog.Only available on the
experience variant. Social proof row shown above the profile row.Where to open
href; "_blank" adds rel="noopener noreferrer". Not available with onOpen.ChatEmbedSkeleton
Loading placeholder sized to match aChatEmbed, shown while the data for a shared link is being fetched.
ChatEmbedUnavailable
Placeholder sized to match aChatEmbed, shown in place of the card when the shared profile or experience has been removed, hidden or unpublished. Pass children to localise the message.
Exported types
Also exported from@fanvue/ui: ChatEmbedProps, ChatEmbedSkeletonProps, ChatEmbedSocialProof, ChatEmbedUnavailableProps, ChatEmbedVariant.
Setup: Installation · Theming