Files
stats/apps/dashboard/src/components/ui/gradient-background.tsx
Carl-Gerhard Lindesvärd 32e91959f6 chore(root): migrate to biome
2024-09-18 23:46:11 +02:00

25 lines
463 B
TypeScript

import { cn } from '@/utils/cn';
interface GradientBackgroundProps {
children: React.ReactNode;
className?: string;
}
export function GradientBackground({
children,
className,
...props
}: GradientBackgroundProps) {
return (
<div
className={cn(
'from-def-200 rounded-md bg-gradient-to-tr to-white',
className,
)}
{...props}
>
<div className="flex flex-col gap-4 p-4">{children}</div>
</div>
);
}