Skip to content

Commit 2e87a08

Browse files
committed
feat: glass placeholder
1 parent 29bd837 commit 2e87a08

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/components/glass.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { cn } from "@/lib/utils"
2+
3+
type GlassProps = React.HTMLAttributes<HTMLDivElement>
4+
5+
export function Glass({ children, ...props }: GlassProps) {
6+
return (
7+
<div {...props} className={cn("backdrop-blur-md rounded-lg border border-gray-200 p-4", props.className)}>
8+
{children}
9+
</div>
10+
)
11+
}

src/lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

0 commit comments

Comments
 (0)