snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-15 22:44:43 +05:00
commit 1416db152c
5727 changed files with 630238 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
import { Button } from "@/registry/bases/aria/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
} from "@/registry/bases/aria/ui/card"
import { Item } from "@/registry/bases/aria/ui/item"
import { Label } from "@/registry/bases/aria/ui/label"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export function CoverArt() {
return (
<Card>
<CardContent className="flex flex-col gap-3">
<Label
htmlFor="cover-art"
className="text-center text-xs font-normal tracking-wider text-muted-foreground uppercase"
>
Cover Art
</Label>
<Item className="aspect-square" variant="outline">
<label
htmlFor="cover-art"
className="flex size-full cursor-pointer items-center justify-center"
>
<IconPlaceholder
lucide="ImageIcon"
tabler="IconPhoto"
hugeicons="Image01Icon"
phosphor="ImageIcon"
remixicon="RiImageLine"
className="size-10 text-muted-foreground/50"
/>
</label>
</Item>
<input
id="cover-art"
type="file"
accept="image/jpeg,image/png"
className="sr-only"
/>
</CardContent>
<CardFooter className="flex-col gap-2">
<label htmlFor="cover-art" className="w-full">
<Button variant="secondary" className="w-full">
Upload Artwork
</Button>
</label>
<CardDescription className="text-center text-xs">
Minimum 3000 × 3000px
<br />
JPEG or PNG only
</CardDescription>
</CardFooter>
</Card>
)
}