Content
Attachment
Composes file media, name, metadata, and optional native actions.
idle
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Release files
Recommendations
| Guidance | Practice |
|---|---|
| Do | Show the filename and useful metadata such as format or size. Label preview and download actions. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| | <div> | Static file or media row with no interactive root. |
| | Optional | Contains an image or other media; preserve meaningful alternative text. |
| | Required content | Provide the file name and supporting metadata. |
| | Optional | Contains native links and actions; do not make the root clickable. |