mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
import React from "react"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
import { AspectRatio } from "@/registry/new-york/ui/aspect-ratio"
|
|
|
|
export function ComponentCard({
|
|
className,
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<AspectRatio ratio={1 / 1} asChild>
|
|
<div
|
|
className={cn(
|
|
"flex items-center justify-center rounded-md border p-8",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
</AspectRatio>
|
|
)
|
|
}
|