Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Anatomy
  • Examples
  • Release files
  • Recommendations
  • Usage boundaries
  • API reference

Content

Attachment

Composes file media, name, metadata, and optional native actions.

idle

Usage

import {
	Attachment,
	AttachmentActions,
	AttachmentContent,
	AttachmentDescription,
	AttachmentMedia,
	AttachmentName,
} from "@mizen-labs/ui";

Anatomy

The parts and how they nest, taken from the preview above.

<Attachment>
	<AttachmentMedia />
	<AttachmentContent>
		<AttachmentName />
		<AttachmentDescription />
	</AttachmentContent>
	<AttachmentActions />
</Attachment>

Examples

Release files

Recommendations

GuidancePractice
Do

Show the filename and useful metadata such as format or size. Label preview and download actions.

Usage boundaries

GuidanceBoundary
Scope

Use File Upload for file selection and upload progress. Attachment does not own transport or storage.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
AttachmentAttachmentProps<div>Static file or media row with no interactive root.
AttachmentMediaAttachmentMediaPropsOptionalContains an image or other media; preserve meaningful alternative text.
AttachmentContent / AttachmentName / AttachmentDescriptionComposable partsRequired contentProvide the file name and supporting metadata.
AttachmentActionsAttachmentActionsPropsOptionalContains native links and actions; do not make the root clickable.
PreviousDiagramNextCarousel
monthly-report.csvCSV · 12 rows · 4 KB
Rows of lavender under a pink evening sky
lavender-valensole.jpgJPEG image · 271 KB
View file details