import * as React from 'react'; import { cn } from '../lib/utils'; export type CardProps = React.HTMLAttributes & { spotlight?: boolean; gradient?: boolean; degrees?: number; /** * Not sure if this is needed, but added a toggle so it defaults to true since that was how it was before. * * This is required to be set false if you want drag drop to work within this element. */ backdropBlur?: boolean; }; const Card = React.forwardRef( ( { className, children, gradient = false, degrees = 120, backdropBlur = true, ...props }, ref, ) => { return (
{children}
); }, ); Card.displayName = 'Card'; const CardHeader = React.forwardRef>( ({ className, ...props }, ref) => (
), ); CardHeader.displayName = 'CardHeader'; const CardTitle = React.forwardRef>( ({ className, ...props }, ref) => (

), ); CardTitle.displayName = 'CardTitle'; const CardDescription = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)); CardDescription.displayName = 'CardDescription'; const CardContent = React.forwardRef>( ({ className, ...props }, ref) => (

), ); CardContent.displayName = 'CardContent'; const CardFooter = React.forwardRef>( ({ className, ...props }, ref) => (
), ); CardFooter.displayName = 'CardFooter'; export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };