Skip to content

Discrepancies around attachments on chat composer component in Figma vs live version #3941

Answered by krisantrobus
tonge495 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Eileen,

Thank you for raising this, it looks like you are using the FileUploaderItem part of this component. In the Figma file you are referencing the component is actually ComposerAttachmentCard which is exported as part of @twilio-paste/core/chat-log. We have a Storybook for exactly what you are trying to build here and you can find the code for that here.

ComposerAttachmentCard is meant to be used when you are in the context of a chat whereas FileUploaderItem is designed to be used as part of a static document manager.

You can import it using:

import {ComposerAttachmentCard} from "@twilio-paste/core/chat-log"

We acknowledge our documentation for this is not obvious. We are looking …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tonge495
Comment options

Answer selected by tonge495
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants