ActionBar
Buttons to interact with attachments.
Dual Use! Attachments can appear in both messages and composers.
Anatomy
API Reference
Container
Containts all parts of the attachment.
This primitive renders a <div>
element unless asChild
is set.
AttachmentPrimitiveRootProps
asChild:
Change the default rendered element for the one passed as a child, merging their props and behavior.
Read the Composition guide for more details.
Thumbnail
The thumbnail of the attachment.
This primitive renders a <div>
element unless asChild
is set.
AttachmentPrimitiveThumbnailProps
asChild:
Change the default rendered element for the one passed as a child, merging their props and behavior.
Read the Composition guide for more details.
Name
The name of the attachment.
This primitive renders a <div>
element unless asChild
is set.
AttachmentPrimitiveNameProps
asChild:
Change the default rendered element for the one passed as a child, merging their props and behavior.
Read the Composition guide for more details.
Remove
Removes the attachment.
This primitive renders a <button>
element unless asChild
is set.
AttachmentPrimitiveRemoveProps
asChild:
Change the default rendered element for the one passed as a child, merging their props and behavior.
Read the Composition guide for more details.