Skip to content

Attachment

Attachment displays uploaded or linked file cards with file details and action buttons.

Usage

AttachmentExample.tsx
import { Attachment } from '@masumdev/rn-ui';
export function AttachmentExample() {
return (
<Attachment
fileName="document.pdf"
fileSize="2.4 MB"
fileType="pdf"
onRemove={() => console.log('Remove file')}
/>
);
}

Props API

PropTypeDefaultDescription
fileNamestring—Name of the attached file.
fileSizestring—Human readable file size string.
fileTypestring—File extension format badge.
onRemove() => void—Callback when remove action button is pressed.