Files
LCUI/docs/examples/attachment-sizes-tsx/example.tsx
T

43 lines
1.2 KiB
TypeScript

import {
Attachment,
AttachmentContent,
AttachmentDescription,
AttachmentMedia,
AttachmentTitle,
Icon,
Widget,
} from "@lcui/react";
export default function Example() {
return (
<Widget className="mx-auto flex w-full max-w-sm flex-col gap-3">
<Attachment size="default">
<AttachmentMedia>
<Icon name="document" />
</AttachmentMedia>
<AttachmentContent>
<AttachmentTitle>Default attachment</AttachmentTitle>
<AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>
</AttachmentContent>
</Attachment>
<Attachment size="sm">
<AttachmentMedia>
<Icon name="document" />
</AttachmentMedia>
<AttachmentContent>
<AttachmentTitle>Small attachment</AttachmentTitle>
<AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>
</AttachmentContent>
</Attachment>
<Attachment size="xs">
<AttachmentMedia>
<Icon name="document" />
</AttachmentMedia>
<AttachmentContent>
<AttachmentTitle>Extra small attachment</AttachmentTitle>
</AttachmentContent>
</Attachment>
</Widget>
);
}