snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
42
apps/v4/examples/radix/attachment-sizes.tsx
Normal file
42
apps/v4/examples/radix/attachment-sizes.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
import { FileTextIcon } from "lucide-react"
|
||||
|
||||
import {
|
||||
Attachment,
|
||||
AttachmentContent,
|
||||
AttachmentDescription,
|
||||
AttachmentMedia,
|
||||
AttachmentTitle,
|
||||
} from "@/styles/radix-rhea/ui/attachment"
|
||||
|
||||
export function AttachmentSizes() {
|
||||
return (
|
||||
<div className="mx-auto flex w-full max-w-sm flex-col gap-3 py-12">
|
||||
<Attachment size="default" className="w-full">
|
||||
<AttachmentMedia>
|
||||
<FileTextIcon />
|
||||
</AttachmentMedia>
|
||||
<AttachmentContent>
|
||||
<AttachmentTitle>Default attachment</AttachmentTitle>
|
||||
<AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>
|
||||
</AttachmentContent>
|
||||
</Attachment>
|
||||
<Attachment size="sm" className="w-full">
|
||||
<AttachmentMedia>
|
||||
<FileTextIcon />
|
||||
</AttachmentMedia>
|
||||
<AttachmentContent>
|
||||
<AttachmentTitle>Small attachment</AttachmentTitle>
|
||||
<AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>
|
||||
</AttachmentContent>
|
||||
</Attachment>
|
||||
<Attachment size="xs" className="w-full">
|
||||
<AttachmentMedia>
|
||||
<FileTextIcon />
|
||||
</AttachmentMedia>
|
||||
<AttachmentContent>
|
||||
<AttachmentTitle>Extra small attachment</AttachmentTitle>
|
||||
</AttachmentContent>
|
||||
</Attachment>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user