mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
22 lines
495 B
TypeScript
22 lines
495 B
TypeScript
import React from "react"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
import { AspectRatio } from "@/components/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 border-slate-200 p-8 dark:border-slate-700",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
</AspectRatio>
|
|
)
|
|
}
|