General
Card
Translucent dark panel with an optional title, blurred over whatever sits behind it.
npx bezel-add add cardpackages/ui/src/Card.tsx · 18 lines
import React from "react";
interface CardProps {
title?: string;
children: React.ReactNode;
className?: string;
}
export function Card({ title, children, className = "" }: CardProps) {
return (
<div
className={`rounded-2xl border border-white/10 bg-white/5 backdrop-blur-sm p-6 shadow-md ${className}`}
>
{title && <h3 className="text-lg font-semibold text-white mb-3">{title}</h3>}
<div className="text-white/80">{children}</div>
</div>
);
}